Skip to content

Commit

Permalink
ci: try leveraging github actions cache for vcpkg builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Mar 14, 2024
1 parent 6813367 commit 0e62126
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
if: runner.os == 'Windows'
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite');
- uses: actions/cache@v4
with:
path: |
Expand Down

0 comments on commit 0e62126

Please sign in to comment.