Skip to content

Commit

Permalink
Fix ccache for macos (#3992)
Browse files Browse the repository at this point in the history
Need to ignore time macros.
  • Loading branch information
WeiqunZhang authored Jul 1, 2024
1 parent 815151e commit 39f46ae
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set Up Cache
uses: actions/cache@v4
with:
path: /Users/runner/Library/Caches/ccache
path: ~/Library/Caches/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
Expand All @@ -31,8 +31,10 @@ jobs:
run: |
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=30M
export CCACHE_MAXSIZE=50M
export CCACHE_SLOPPINESS=time_macros
ccache -z
ccache --version
cmake -S . -B build \
-DBUILD_SHARED_LIBS=ON \
Expand All @@ -46,6 +48,7 @@ jobs:
ctest --test-dir build --output-on-failure
du -hs ~/Library/Caches/ccache
ccache -s
# Build libamrex and all tests
Expand All @@ -59,7 +62,7 @@ jobs:
- name: Set Up Cache
uses: actions/cache@v4
with:
path: /Users/runner/Library/Caches/ccache
path: ~/Library/Caches/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
Expand All @@ -71,7 +74,9 @@ jobs:
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=160M
export CCACHE_SLOPPINESS=time_macros
ccache -z
ccache --version
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Debug \
Expand All @@ -84,6 +89,7 @@ jobs:
ctest --test-dir build --output-on-failure
du -hs ~/Library/Caches/ccache
ccache -s
save_pr_number:
Expand Down

0 comments on commit 39f46ae

Please sign in to comment.