From b3b9a9b2315c0867b3db792593027741adf7ead5 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 12 Jan 2025 22:30:16 +0100 Subject: [PATCH] vcpkg binary caching for android ci --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e21354..e4ec538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,10 +68,17 @@ jobs: - name: Install Dependencies (host) run: sudo apt update && sudo apt -y install cmake pkg-config nasm + - name: Export GitHub Actions cache environment variables + 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 || ''); + - name: Install Dependencies (target) env: ANDROID_NDK_HOME: ${{steps.setup_ndk.outputs.ndk-path}} - #run: vcpkg install --triplet ${{matrix.platform.vcpkg_toolkit}} libsodium openssl opus libvpx libpng libjpeg-turbo + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" run: vcpkg install --triplet ${{matrix.platform.vcpkg_toolkit}} libsodium openssl # vcpkg scripts root /usr/local/share/vcpkg/scripts