From dba723837cf37d94acbb863faab2aa57a4416687 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 5 Dec 2023 16:38:14 +0100 Subject: [PATCH] try using x-gha --- .github/workflows/linux.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9ae5fe1..04fcb1c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,6 +2,9 @@ name: Linux on: [push] +env: + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" + jobs: debian-11-build: runs-on: ubuntu-latest @@ -24,23 +27,16 @@ jobs: - name: Install Dependencies run: bash ./scripts/debian-11/1-install-deps.sh - - name: Restore vcpkg - id: cache-vcpkg-restore - uses: actions/cache/restore@v3 + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v6 with: - path: ./vcpkg/buildtrees - key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('vcpkg.json') }}-vcpkg + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - name: Create Build Environment run: bash ./scripts/debian-11/2-configure.sh '-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake' - - name: Cache vcpkg - id: cache-vcpkg - uses: actions/cache/save@v3 - with: - path: ./vcpkg/buildtrees - key: ${{ steps.cache-vcpkg-restore.outputs.cache-primary-key }} - - name: Build Server run: bash ./scripts/debian-11/3-build.sh