ci: use normal built in vcpkg cache
This commit is contained in:
committed by
Chris Rizzitello
parent
f49f5f790c
commit
6e3426855d
16
.github/actions/install-dependencies/action.yml
vendored
16
.github/actions/install-dependencies/action.yml
vendored
@ -85,6 +85,20 @@ runs:
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
uses: seanmiddleditch/gha-setup-ninja@master
|
||||
|
||||
- name: Export GitHub Actions cache environment variables
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
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 || '');
|
||||
|
||||
#Set vcpkg binary sources to use GitHub Actions cache
|
||||
- name: Set vcpkg binary sources
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
run: echo "VCPKG_BINARY_SOURCES=clear;x-gha,readwrite" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Build and cache vcpkg
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
id: vcpkg
|
||||
@ -94,7 +108,7 @@ runs:
|
||||
extra-args: --classic
|
||||
triplet: x64-windows-release
|
||||
token: ${{ github.token }}
|
||||
github-binarycache: true
|
||||
github-binarycache: false
|
||||
|
||||
- name: Install Wix
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
|
||||
Reference in New Issue
Block a user