diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3fa243b..f4866a9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -148,13 +148,16 @@ jobs: with: submodules: recursive - #- name: update vcpkg - # shell: bash - # run: | - # cd C:/vcpkg - # git pull + - 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 + env: + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" run: vcpkg install pkgconf:x64-windows libsodium:x64-windows-static pthreads:x64-windows-static opus:x64-windows-static libvpx:x64-windows-static # setup vs env @@ -213,13 +216,16 @@ jobs: with: submodules: recursive - #- name: update vcpkg - # shell: bash - # run: | - # cd C:/vcpkg - # git pull + - 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 + env: + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" run: vcpkg install pkgconf:x64-windows libsodium:x64-windows-static pthreads:x64-windows-static opus:x64-windows-static libvpx:x64-windows-static # setup vs env diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c828f67..b3fdf91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,13 +125,16 @@ jobs: with: submodules: recursive - #- name: update vcpkg - # shell: bash - # run: | - # cd C:/vcpkg - # git pull + - 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 + env: + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" run: vcpkg install pkgconf:x64-windows libsodium:x64-windows-static pthreads:x64-windows-static opus:x64-windows-static libvpx:x64-windows-static # setup vs env