ci: use normal built in vcpkg cache

This commit is contained in:
sithlord48
2025-04-25 13:18:59 -04:00
committed by Chris Rizzitello
parent f49f5f790c
commit 6e3426855d

View File

@ -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' }}