55 push :
66 pull_request :
77
8-
98jobs :
109 build_windows :
1110 name : Build and Test on Windows
1211 runs-on : windows-latest
1312
1413 steps :
14+ - name : Export GitHub Actions cache environment variables
15+ uses : actions/github-script@v7
16+ with :
17+ script : |
18+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
19+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
20+
1521 - name : Checkout
1622 uses : actions/checkout@v4
1723
1824 - name : Setup Python
1925 uses : actions/setup-python@v5
2026 with :
21- python-version : ' 3.12 '
27+ python-version : " 3.13 "
2228
2329 - name : Build
30+ env :
31+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
2432 run : |
2533 python -m venv .venv
2634 .venv\Scripts\Activate.ps1
27- pip install .
35+ python -m pip install --upgrade pip
36+ pip install '.[test]' -C override=cmake.args+=["--toolchain=$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"]
2837
2938 - name : Test
3039 run : |
3140 .venv\Scripts\Activate.ps1
32- pip install pytest
3341 pytest test
3442
3543 build_macos :
3644 name : Build and Test on MacOS
3745 runs-on : macos-latest
3846
3947 steps :
48+ - name : Export GitHub Actions cache environment variables
49+ uses : actions/github-script@v7
50+ with :
51+ script : |
52+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
53+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
54+
4055 - name : Checkout
4156 uses : actions/checkout@v4
4257
@@ -45,35 +60,55 @@ jobs:
4560 with :
4661 xcode-version : latest
4762
63+ - name : Setup Python
64+ uses : actions/setup-python@v5
65+ with :
66+ python-version : " 3.13"
67+
4868 - name : Build
69+ env :
70+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
4971 run : |
5072 python -m venv .venv
5173 . .venv/bin/activate
5274 pip install --upgrade pip
53- pip install .
75+ pip install '.[test]' -C override=cmake.options.VELOCEM_BOOTSTRAP_VCPKG="ON"
5476
5577 - name : Test
5678 run : |
5779 . .venv/bin/activate
58- pip install pytest
5980 pytest test
6081
6182 build_linux :
6283 name : Build and Test on Linux
63- runs-on : ubuntu-24.04
84+ runs-on : ubuntu-latest
85+
6486 steps :
87+ - name : Export GitHub Actions cache environment variables
88+ uses : actions/github-script@v7
89+ with :
90+ script : |
91+ core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
92+ core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
93+
6594 - name : Checkout
6695 uses : actions/checkout@v4
6796
97+ - name : Setup Python
98+ uses : actions/setup-python@v5
99+ with :
100+ python-version : " 3.13"
101+
68102 - name : Build
103+ env :
104+ VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
69105 run : |
70106 python -m venv .venv
71107 . .venv/bin/activate
72108 pip install --upgrade pip
73- pip install .
109+ pip install '.[test]' -C override=cmake.args+=\["--toolchain=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake"\]
74110
75111 - name : Test
76112 run : |
77113 . .venv/bin/activate
78- pip install pytest
79114 pytest test
0 commit comments