Skip to content

Commit

Permalink
add vcpkg binary caching to ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Jan 12, 2025
1 parent 9029763 commit cf2ba19
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,16 @@ jobs:
with:
submodules: recursive

#- name: update vcpkg
# shell: bash
# run: |
# cd C:/vcpkg
# git pull
- 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: Install Dependencies
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
run: vcpkg install pkgconf:x64-windows libsodium:x64-windows-static pthreads:x64-windows-static opus:x64-windows-static libvpx:x64-windows-static

# setup vs env
Expand Down Expand Up @@ -213,13 +216,16 @@ jobs:
with:
submodules: recursive

#- name: update vcpkg
# shell: bash
# run: |
# cd C:/vcpkg
# git pull
- 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: Install Dependencies
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
run: vcpkg install pkgconf:x64-windows libsodium:x64-windows-static pthreads:x64-windows-static opus:x64-windows-static libvpx:x64-windows-static

# setup vs env
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,16 @@ jobs:
with:
submodules: recursive

#- name: update vcpkg
# shell: bash
# run: |
# cd C:/vcpkg
# git pull
- 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: Install Dependencies
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
run: vcpkg install pkgconf:x64-windows libsodium:x64-windows-static pthreads:x64-windows-static opus:x64-windows-static libvpx:x64-windows-static

# setup vs env
Expand Down

0 comments on commit cf2ba19

Please sign in to comment.