Skip to content

Commit 957fc31

Browse files
committed
Linux runner vcpkg caching attempt
1 parent f2fd70e commit 957fc31

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-wheels.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v3
3333

34+
# Special case: cibuildwheel uses docker container for
35+
# manylinux builds, so cache our vcpkg data on the
36+
# host filesystem (mounted to /host by default)
37+
- name: Point VCPKG_BINARY_SOURCES to host filesystem (Linux only)
38+
if: runner.os == 'Linux'
39+
run: |
40+
echo "VCPKG_BINARY_SOURCES=${RUNNER_WORKSPACE}/b/vcpkg_cache" >> $GITHUB_ENV
41+
shell: bash
42+
3443
- name: run vcpkg
3544
uses: lukka/run-vcpkg@main
3645
id: run_vcpkg
@@ -47,7 +56,7 @@ jobs:
4756
- name: List $RUNNER_WORKSPACE before build
4857
run: find $RUNNER_WORKSPACE
4958
shell: bash
50-
59+
5160
- name: Normalize paths (Windows only)
5261
if: runner.os == 'Windows'
5362
run: |

0 commit comments

Comments
 (0)