Skip to content

Commit

Permalink
try vcpkg binary caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Jan 14, 2025
1 parent 52753b6 commit 69890bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: setup build
shell: bash
run: |
CI_CACHE=${GITHUB_WORKSPACE}/.ci_cache
VCPKG_BINARY_SOURCES="clear;files,${GITHUB_WORKSPACE}/.ci.cache,readwrite"
mkdir -p ${CI_CACHE}
echo "CI_CACHE=${CI_CACHE}" >> ${GITHUB_ENV}
echo "VCPKG_BINARY_SOURCES=${VCPKG_BINARY_SOURCES}" >> ${GITHUB_ENV}
- name: Cache ${{ matrix.target }} deps
id: cache
uses: actions/cache@v4
with:
path: tunnel/build/cmake/${{ matrix.target }}
path: ${{ env.CI_CACHE }}
key: dependencies-${{ matrix.target }}-${{ hashFiles('./tunnel/vcpkg.json') }}

- name: build if no cache
Expand Down

0 comments on commit 69890bb

Please sign in to comment.