diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a71893..2acd535 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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