Update GH Action to use AZ Blob. (#79)

This commit is contained in:
Mikaël Capelle
2025-05-25 20:55:59 +02:00
committed by GitHub
parent 1cccdef95d
commit 307cc7ebb3
+1 -14
View File
@@ -9,7 +9,7 @@ on:
types: [opened, synchronize, reopened]
env:
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
VCPKG_BINARY_SOURCES: clear;x-azblob,${{ vars.AZ_BLOB_VCPKG_URL }},${{ secrets.AZ_BLOB_SAS }},readwrite
jobs:
build:
@@ -29,22 +29,9 @@ jobs:
# checkout USVFS and vcpkg
- uses: actions/checkout@v4
- name: Restore vcpkg cache
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/vcpkg_cache
key: vcpkg-${{ matrix.arch }}-${{ matrix.config }}-${{ hashFiles('vcpkg.json') }}
restore-keys: vcpkg-${{ matrix.arch }}-${{ matrix.config }}
# configure
- run: cmake --preset vs2022-windows-${{ matrix.arch }} -B build_${{ matrix.arch }} "-DCMAKE_INSTALL_PREFIX=install/${{ matrix.config }}"
- name: Save vcpkg cache
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/vcpkg_cache
key: vcpkg-${{ matrix.arch }}-${{ matrix.config }}-${{ hashFiles('vcpkg.json') }}
# build
- run: cmake --build build_${{ matrix.arch }} --config ${{ matrix.config }} --target INSTALL