From 69868474465bc76cf674ed561ff79e97e09855ec Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Mon, 2 Dec 2024 16:40:57 +0100 Subject: [PATCH] a --- .github/workflows/centos7.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/centos7.yml b/.github/workflows/centos7.yml index a6454ebe67..3cba5a218e 100644 --- a/.github/workflows/centos7.yml +++ b/.github/workflows/centos7.yml @@ -77,7 +77,7 @@ jobs: - name: create vcpkg cache dir run: | echo "VCPKG_CACHE_DIR=$GITHUB_WORKSPACE/vcpkg_cache" >> $GITHUB_ENV - mkdir -p ${{ env.VCPKG_CACHE_DIR }} + mkdir -p ${{ github.workspace }}/vcpkg_cache - name: Restore vcpkg binary dir from cache @@ -85,7 +85,7 @@ jobs: # Note: we are stuck with v3, because v4 is not compatible with oracle8 image uses: actions/cache/restore@v3 with: - path: ${{ env.VCPKG_CACHE_DIR }} + path: ${{ github.workspace }}/vcpkg_cache key: vcpkg-cache-centos7-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }} # Allows to restore a cache when deps have only partially changed (like adding a dependency) restore-keys: vcpkg-cache-centos7- @@ -96,6 +96,7 @@ jobs: -t antares:centos7 \ --build-arg="BRANCH=${{ env.REF }}" \ --build-arg="NPROC=$(nproc)" \ + --build-arg="VCPKG_CACHE_DIR=${{ github.workspace }}/vcpkg_cache" \ -f ${{ env.DOCKERFILE }} . @@ -127,6 +128,6 @@ jobs: id: save-cache-vcpkg-binary uses: actions/cache/save@v3 with: - path: ${{ env.VCPKG_CACHE_DIR }} + path: ${{ github.workspace }}/vcpkg_cache key: vcpkg-cache-centos7-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}