diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f4866a99..cf08d3cd 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -87,17 +87,22 @@ jobs: distribution: 'temurin' java-version: '17' - - name: update vcpkg - run: | - git clone https://github.com/microsoft/vcpkg.git - - 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}} --overlay-ports=vcpkg/ports libsodium opus libvpx libpng libjpeg-turbo + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" + #run: vcpkg install --triplet ${{matrix.platform.vcpkg_toolkit}} --overlay-ports=vcpkg/ports libsodium opus libvpx libpng libjpeg-turbo + run: vcpkg install --triplet ${{matrix.platform.vcpkg_toolkit}} libsodium opus libvpx libpng libjpeg-turbo # vcpkg scripts root /usr/local/share/vcpkg/scripts - name: Configure CMake diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3fdf917..264fd891 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,17 +61,20 @@ jobs: distribution: 'temurin' java-version: '17' - #- name: update vcpkg - # run: | - # git clone https://github.com/microsoft/vcpkg.git - - 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}} --overlay-ports=vcpkg/ports libsodium opus libvpx libpng libjpeg-turbo + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" run: vcpkg install --triplet ${{matrix.platform.vcpkg_toolkit}} libsodium opus libvpx libpng libjpeg-turbo # vcpkg scripts root /usr/local/share/vcpkg/scripts