From 0b6df0807f1b32266e2a206e38dc52ebad52ed96 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 21 Jan 2022 00:00:14 +0800 Subject: ... --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c978c3af..c96f7a30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,12 +12,13 @@ on: - "docs/**" - "**/README.md" +env: + VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.cache/vcpkg/archives + jobs: macos-build: name: macOS Build runs-on: macos-latest - env: - VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.cache/vcpkg/archives steps: - uses: actions/checkout@v2 @@ -25,7 +26,7 @@ jobs: - name: Restore Cache uses: actions/cache@v2 with: - path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} + path: .cache/vcpkg/archives key: vcpkg-${{ runner.os }} - name: Setup Ninja @@ -48,16 +49,13 @@ jobs: name: Windows Build runs-on: windows-latest - env: - VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.cache/vcpkg/archives - steps: - uses: actions/checkout@v2 - name: Restore Cache uses: actions/cache@v2 with: - path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} + path: .cache/vcpkg/archives key: vcpkg-${{ runner.os }} - name: Setup Ninja -- cgit v1.2.3