ci: use sithlord48/vcpkg-action@v7

This commit is contained in:
sithlord48
2025-05-02 12:24:20 -04:00
committed by Chris Rizzitello
parent 0c94adf03c
commit 97863bda7c

View File

@ -85,30 +85,15 @@ 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
uses: johnwason/vcpkg-action@v6
uses: sithlord48/vcpkg-action@v7
with:
pkgs: gtest openssl
extra-args: --classic
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: false
- name: Install Wix
if: ${{ runner.os == 'Windows' }}