44 workflow_dispatch :
55 pull_request :
66 schedule :
7- - cron : ' 14 3 15 * *' # Runs at 03:14 UTC on the 15th of every month
7+ - cron : " 14 3 15 * *" # Runs at 03:14 UTC on the 15th of every month
88 push :
99 branches :
1010 - main
@@ -27,30 +27,32 @@ jobs:
2727 uses : actions/cache@v4
2828 with :
2929 path : vcpkg_installed
30- key : vcpkg-${{ runner.os }}-${{ hashFiles(' vcpkg.json' ) }}
30+ key : vcpkg-${{ runner.os }}-${{ hashFiles(" vcpkg.json" ) }}
3131
3232 - name : Export vcpkg host triplet for compilation
33- shell : bash
33+ shell : node
3434 run : |
35- declare -A tripletMapping=(
36- ["Linux"]="x64-linux"
37- ["Windows"]="x64-windows-static-md"
38- ["macOS"]="arm64-osx"
39- )
40- export VCPKG_HOST_TRIPLET="${tripletMapping[$RUNNER_OS]}"
41- echo VCPKG_HOST_TRIPLET="$VCPKG_HOST_TRIPLET" >> $GITHUB_ENV
42- echo "$VCPKG_HOST_TRIPLET"
35+ const mapping = {
36+ Linux: "x64-linux",
37+ Windows: "x64-windows-static-md",
38+ macOS: "arm64-osx"
39+ };
40+ const value = mapping[process.env.RUNNER_OS];
41+ const fs = require("fs");
42+ fs.appendFileSync(process.env.GITHUB_ENV, `VCPKG_HOST_TRIPLET=${value}\n`);
43+ print(value);
44+
4345
4446 - name : Acquire vcpkg
45- if : steps.cache-vcpkg-deps.outputs.cache-hit != ' true'
47+ if : steps.cache-vcpkg-deps.outputs.cache-hit != " true"
4648 uses : actions/checkout@v4
4749 with :
4850 repository : " Microsoft/vcpkg"
4951 path : vcpkg
5052 ref : c9c17dcea3016bc241df0422e82b8aea212dcb93
5153
5254 - name : Install libraries with vcpkg.json
53- if : steps.cache-vcpkg-deps.outputs.cache-hit != ' true'
55+ if : steps.cache-vcpkg-deps.outputs.cache-hit != " true"
5456 shell : bash
5557 run : |
5658 ./vcpkg/bootstrap-vcpkg.sh
6668 cache-dependency-glob : " **/pyproject.toml"
6769
6870 - name : Build pybmds
69- if : runner.os != ' Windows'
71+ if : runner.os != " Windows"
7072 run : |
7173 uv pip install pybind11==3.0.0 --target=./pybind11
7274
8284 py.test
8385
8486 - name : Build pybmds
85- if : runner.os == ' Windows'
87+ if : runner.os == " Windows"
8688 run : |
8789 uv pip install pybind11==3.0.0 --target=./pybind11
8890
0 commit comments