Enable vcpkg binary caching (#217)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2024-10-13 22:00:32 +02:00
committed by GitHub
parent df56b2e31f
commit 09eef9d5a1
6 changed files with 54 additions and 0 deletions
+9
View File
@@ -2,6 +2,9 @@ name: linux-gcc
on: [ pull_request ]
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs:
linux-gcc:
runs-on: ubuntu-latest
@@ -11,6 +14,12 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
- name: install dependencies