Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 2, 2024
1 parent a9a4332 commit 42c03a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ jobs:

- name: create vcpkg cache dir
run: |
echo "VCPKG_CACHE_DIR=$GITHUB_WORKSPACE/docker/vcpkg_cache" >> $GITHUB_ENV
mkdir -p ${{ github.workspace }}/docker/vcpkg_cache
echo "VCPKG_CACHE_DIR=$GITHUB_WORKSPACE/vcpkg_cache" >> $GITHUB_ENV
mkdir -p ${{ github.workspace }}/vcpkg_cache
- name: Restore vcpkg binary dir from cache
id: cache-vcpkg-binary
# Note: we are stuck with v3, because v4 is not compatible with oracle8 image
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}/docker/vcpkg_cache
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-
Expand All @@ -95,7 +95,7 @@ jobs:
-t antares:centos7 \
--build-arg="BRANCH=${{ env.REF }}" \
--build-arg="NPROC=$(nproc)" \
--build-arg="VCPKG_CACHE_DIR=${{ github.workspace }}/docker/vcpkg_cache" \
--build-arg="VCPKG_CACHE_DIR=./vcpkg_cache" \
-f ${{ env.DOCKERFILE }} .
Expand Down Expand Up @@ -127,6 +127,6 @@ jobs:
id: save-cache-vcpkg-binary
uses: actions/cache/save@v3
with:
path: ${{ github.workspace }}/docker/vcpkg_cache
path: ${{ github.workspace }}/vcpkg_cache
key: vcpkg-cache-centos7-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}

0 comments on commit 42c03a9

Please sign in to comment.