Skip to content

Commit bc5cad9

Browse files
committed
Vcpkg cache artifacts on macOS
1 parent fbb5412 commit bc5cad9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/macos.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,16 @@ jobs:
188188
popd
189189
fi
190190
191+
- name: Export GitHub Actions cache and vcpkg environment variables
192+
if: matrix.options.loadtests != 'OFF'
193+
uses: actions/github-script@v7
194+
with:
195+
# Caution. JSON in use. "#core" breaks the build.
196+
script: |
197+
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
198+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
199+
core.exportVariable('VCPKG_BINARY_SOURCES', "clear;x-gha,readwrite");
200+
191201
- name: Install Doxygen
192202
if: matrix.options.doc == 'ON'
193203
uses: ssciwr/doxygen-install@v1

0 commit comments

Comments
 (0)