Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: CCache for macOS #1129

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
#CMAKE_GENERATOR: Ninja
SETUPTOOLS_USE_DISTUTILS: stdlib
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Brew Cache
uses: actions/cache@v3
uses: actions/cache@v4
# - once stored under a key, they become immutable (even if local cache path content changes)
# - for a refresh the key has to change, e.g., hash of a tracked file in the key
with:
Expand Down Expand Up @@ -90,12 +90,21 @@ jobs:

- name: build HiPACE++
run: |
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=100M
export CCACHE_SLOPPINESS=time_macros
ccache -z

cmake -S . -B build_sp \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DHiPACE_openpmd_internal=OFF \
-DHiPACE_PRECISION=SINGLE
cmake --build build_sp -j 2

du -hs ~/Library/Caches/ccache
ccache -s

# - name: test HiPACE++
# run: |
# ctest --test-dir build_sp --output-on-failure
Loading