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
@@ -20,80 +20,80 @@ jobs:
2020 runs-on : ${{ matrix.os }}
2121
2222 steps :
23- - uses : actions/checkout@v4
24-
25- - name : Cache dependencies
26- id : cache-vcpkg-deps
27- uses : actions/cache@v4
28- with :
29- path : vcpkg_installed
30- key : vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
31-
32- - name : Export vcpkg host triplet for compilation
33- shell : bash
34- run : |
35- if [[ "$RUNNER_OS" == "Windows" ]]; then
36- VCPKG_HOST_TRIPLET=x64-windows-static-md
37- elif [[ "$RUNNER_OS" == "Linux" ]]; then
38- VCPKG_HOST_TRIPLET=x64-linux
39- elif [[ "$RUNNER_OS" == "macOS" ]]; then
40- VCPKG_HOST_TRIPLET=arm64-osx
41- fi
42- echo VCPKG_HOST_TRIPLET="$VCPKG_HOST_TRIPLET" >> $GITHUB_ENV
43- echo $VCPKG_HOST_TRIPLET
44-
45- - name : Acquire vcpkg
46- if : steps.cache-vcpkg-deps.outputs.cache-hit != 'true'
47- uses : actions/checkout@v4
48- with :
49- repository : " Microsoft/vcpkg"
50- path : vcpkg
51- ref : c9c17dcea3016bc241df0422e82b8aea212dcb93
52-
53- - name : Install libraries with vcpkg.json
54- if : steps.cache-vcpkg-deps.outputs.cache-hit != 'true'
55- shell : bash
56- run : |
57- ./vcpkg/bootstrap-vcpkg.sh
58- ./vcpkg/vcpkg install --host-triplet="$VCPKG_HOST_TRIPLET"
59-
60- - uses : actions/setup-python@v5
61- with :
62- python-version : ${{ matrix.python-version }}
63-
64- - name : Install uv
65- uses : astral-sh/setup-uv@v5
66- with :
67- cache-dependency-glob : " **/pyproject.toml"
68-
69- - name : Build pybmds
70- if : runner.os != 'Windows'
71- run : |
72- uv pip install pybind11==3.0.0 --target=./pybind11
73-
74- uv venv --python=${{ matrix.python-version }}
75-
76- source .venv/bin/activate
77-
78- export CMAKE_PREFIX_PATH=${{ github.workspace }}/pybind11/pybind11/share/cmake
79- export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
80-
81- uv pip install -v -e ".[dev]"
82-
83- py.test
84-
85- - name : Build pybmds
86- if : runner.os == 'Windows'
87- run : |
88- uv pip install pybind11==3.0.0 --target=./pybind11
89-
90- uv venv --python=${{ matrix.python-version }}
91-
92- .venv/Scripts/activate
93-
94- $env:CMAKE_PREFIX_PATH="${{ github.workspace }}\pybind11\pybind11\share\cmake"
95- $env:CMAKE_BUILD_PARALLEL_LEVEL = [Environment]::ProcessorCount
96-
97- uv pip install -v -e ".[dev]"
98-
99- py.test
23+ - uses : actions/checkout@v4
24+
25+ - name : Cache dependencies
26+ id : cache-vcpkg-deps
27+ uses : actions/cache@v4
28+ with :
29+ path : vcpkg_installed
30+ key : vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
31+
32+ - name : Export vcpkg host triplet for compilation
33+ shell : bash
34+ run : |
35+ if [[ "$RUNNER_OS" == "Windows" ]]; then
36+ VCPKG_HOST_TRIPLET=x64-windows-static-md
37+ elif [[ "$RUNNER_OS" == "Linux" ]]; then
38+ VCPKG_HOST_TRIPLET=x64-linux
39+ elif [[ "$RUNNER_OS" == "macOS" ]]; then
40+ VCPKG_HOST_TRIPLET=arm64-osx
41+ fi
42+ echo VCPKG_HOST_TRIPLET="$VCPKG_HOST_TRIPLET" >> $GITHUB_ENV
43+ echo $VCPKG_HOST_TRIPLET
44+
45+ - name : Acquire vcpkg
46+ if : steps.cache-vcpkg-deps.outputs.cache-hit != 'true'
47+ uses : actions/checkout@v4
48+ with :
49+ repository : " Microsoft/vcpkg"
50+ path : vcpkg
51+ ref : c9c17dcea3016bc241df0422e82b8aea212dcb93
52+
53+ - name : Install libraries with vcpkg.json
54+ if : steps.cache-vcpkg-deps.outputs.cache-hit != 'true'
55+ shell : bash
56+ run : |
57+ ./vcpkg/bootstrap-vcpkg.sh
58+ ./vcpkg/vcpkg install --host-triplet="$VCPKG_HOST_TRIPLET"
59+
60+ - uses : actions/setup-python@v5
61+ with :
62+ python-version : ${{ matrix.python-version }}
63+
64+ - name : Install uv
65+ uses : astral-sh/setup-uv@v5
66+ with :
67+ cache-dependency-glob : " **/pyproject.toml"
68+
69+ - name : Build pybmds
70+ if : runner.os != 'Windows'
71+ run : |
72+ uv pip install pybind11==3.0.0 --target=./pybind11
73+
74+ uv venv --python=${{ matrix.python-version }}
75+
76+ source .venv/bin/activate
77+
78+ export CMAKE_PREFIX_PATH=${{ github.workspace }}/pybind11/pybind11/share/cmake
79+ export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc)
80+
81+ uv pip install -v -e ".[dev]"
82+
83+ py.test
84+
85+ - name : Build pybmds
86+ if : runner.os == 'Windows'
87+ run : |
88+ uv pip install pybind11==3.0.0 --target=./pybind11
89+
90+ uv venv --python=${{ matrix.python-version }}
91+
92+ .venv/Scripts/activate
93+
94+ $env:CMAKE_PREFIX_PATH="${{ github.workspace }}\pybind11\pybind11\share\cmake"
95+ $env:CMAKE_BUILD_PARALLEL_LEVEL = [Environment]::ProcessorCount
96+
97+ uv pip install -v -e ".[dev]"
98+
99+ py.test
0 commit comments