Skip to content

Commit b3c05d2

Browse files
committed
upgrade Windows CI environment
1 parent d42ade8 commit b3c05d2

2 files changed

Lines changed: 34 additions & 18 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,26 @@ jobs:
1010
matrix:
1111
python-version: [3.7]
1212

13+
env:
14+
VCPKG_DEFAULT_TRIPLET: 'x64-windows'
15+
VCPKG_DEFAULT_HOST_TRIPLET: 'x64-windows'
16+
1317
steps:
1418
- uses: actions/checkout@v5
1519
- uses: actions/setup-python@v6
1620
with:
1721
python-version: ${{ matrix.python-version }}
1822
- uses: microsoft/setup-msbuild@v2
1923
- name: setup boost prerequisites
20-
uses: lukka/run-vcpkg@v6
24+
uses: lukka/run-vcpkg@b1a0dd252f06b9e25b3c022a9a03bd7a427fb6a2 # v11.6
2125
with:
22-
vcpkgGitCommitId: '88b1071e39f13b632644d9d953738d345a4ac055'
23-
vcpkgDirectory: '${{ runner.workspace }}/vcpkg'
24-
vcpkgTriplet: x64-windows
25-
vcpkgArguments: >
26-
boost-config
27-
boost-core
28-
boost-function
29-
boost-graph
30-
boost-iterator
31-
boost-lexical-cast
32-
boost-mpl
33-
boost-preprocessor
34-
boost-smart-ptr
35-
boost-static-assert
36-
boost-align
26+
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
27+
runVcpkgInstall: true
28+
vcpkgJsonGlob: .github/workflows/vcpkg.json
29+
- name: List directory contents
30+
run: Get-ChildItem -Path "${{ github.workspace }}/vcpkg" -Recurse -Force -File -Filter 'config.hpp'
31+
run: Get-ChildItem -Path "." -Recurse -Force -File -Filter 'config.hpp'
32+
shell: pwsh
3733
- name: setup faber
3834
run: |
3935
python -m pip install --upgrade pip
@@ -42,8 +38,8 @@ jobs:
4238
- name: build
4339
shell: cmd
4440
run: |
45-
faber --builddir=build cxx.name=msvc --log=commands --log=output --with-boost-include=${{ runner.workspace }}\vcpkg\installed\x64-windows\include -j4
41+
faber --builddir=build cxx.name=msvc --log=commands --log=output --with-boost-include=${{ github.workspace }}\vcpkg\installed\x64-windows\include -j4
4642
- name: test
4743
shell: cmd
4844
run: |
49-
faber --builddir=build cxx.name=msvc --with-boost-include=${{ runner.workspace }}\vcpkg\installed\x64-windows\include -j4 test.report
45+
faber --builddir=build cxx.name=msvc --with-boost-include=${{ github.workspace }}\vcpkg\installed\x64-windows\include -j4 test.report

.github/workflows/vcpkg.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
3+
"name": "boost-python",
4+
"version-string": "1.91.0",
5+
"builtin-baseline": "d015e31e90838a4c9dfa3eed45979bc70d9357fc",
6+
"dependencies": [
7+
"boost-config",
8+
"boost-core",
9+
"boost-function",
10+
"boost-graph",
11+
"boost-iterator",
12+
"boost-lexical-cast",
13+
"boost-mpl",
14+
"boost-preprocessor",
15+
"boost-smart-ptr",
16+
"boost-static-assert",
17+
"boost-align",
18+
"python3"
19+
]
20+
}

0 commit comments

Comments
 (0)