diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 04fcb1c..aea5f18 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -11,6 +11,13 @@ jobs: container: image: debian:11 steps: + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + - name: Install git run: | apt-get update -y @@ -27,13 +34,6 @@ jobs: - name: Install Dependencies run: bash ./scripts/debian-11/1-install-deps.sh - - name: Export GitHub Actions cache environment variables - uses: actions/github-script@v6 - with: - 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' @@ -60,6 +60,13 @@ jobs: container: image: ubuntu:22.04 steps: + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + - name: Install git run: | apt-get update -y diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e15b4ad..c7e6450 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -4,11 +4,19 @@ on: [push] env: VCPKG_DEFAULT_TRIPLET: x64-windows-static + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" jobs: windows-build: runs-on: windows-latest steps: + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + - uses: actions/checkout@v2 with: submodules: 'recursive'