-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,13 +88,21 @@ jobs: | |
# Allows to restore a cache when deps have only partially changed (like adding a dependency) | ||
restore-keys: vcpkg-cache-centos7- | ||
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: centos7-on-${{ runner.os }} | ||
|
||
|
||
- name: Build the image and Antares | ||
run: | | ||
docker build \ | ||
-t antares:centos7 \ | ||
--build-arg="BRANCH=${{ env.REF }}" \ | ||
--build-arg="NPROC=$(nproc)" \ | ||
--build-arg="VCPKG_CACHE_DIR=./vcpkg_cache" \ | ||
--build-arg CCACHE_DIR=/tmp/ccache \ | ||
--build-arg CCACHE_KEY=centos7-on-${{ runner.os }} \ | ||
-f ${{ env.DOCKERFILE }} . | ||
|
@@ -130,3 +138,8 @@ jobs: | |
path: ${{ github.workspace }}/vcpkg_cache | ||
key: vcpkg-cache-centos7-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }} | ||
|
||
|
||
- name: Save ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: centos7-on-${{ runner.os }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters