-
Notifications
You must be signed in to change notification settings - Fork 66
add ccache to Github CI #500
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
161069b
add ccache to Github CI
bobpaw aca94fa
use $GITHUB_OUTPUT and fix yaml flow
bobpaw d476ff6
fix ccache statistics command typo
bobpaw 6ca097d
fix ccache config flags and try to fix strings
bobpaw 8d26de6
commit to test cache restore
bobpaw 1e36ab9
refine ccache key
bobpaw 5f21738
empty commit to test cache hits
bobpaw 3e5cc59
add nompi to ccache key
bobpaw 1c1b23c
remove old cache key and parallel ctest
bobpaw 65052ba
revert parallel CTest
bobpaw 7d973c6
add cache cleanup workflow and recompress
bobpaw 870e92a
add paths: check and fix typos
bobpaw 1338920
download latest ccache version
bobpaw 5298872
replace `with` with `env`
bobpaw 0e0c707
move clear cache statistics after cache restore
bobpaw 8a3eab9
revert to default ccache version
bobpaw 8013a7e
add ninja and ccache to python-api-test
bobpaw 194c7e8
use ninja for python api trilinos build
bobpaw fff578a
fix pyapi workflow typo
bobpaw 998d15c
add pip cache
bobpaw d62e739
add ccache for pyapi swig build
bobpaw def4bcc
use ccache for gklib/metis/parmetis in pyapi ci
bobpaw 41c88bc
ci: prune matrix and use cmake env ccache
bobpaw 03ef7cf
ci: install ccache gcc masq in /opt/ccache
bobpaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Cleanup caches on closed PRs | ||
| # From https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#matching-a-cache-key | ||
| on: | ||
| pull_request: | ||
| types: [ closed ] | ||
| jobs: | ||
| cleanup: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: write | ||
| steps: | ||
| - name: Cleanup | ||
| run: | | ||
| echo "Fetching list of cache keys" | ||
| cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id') | ||
|
|
||
| ## Setting this to not fail the workflow while deleting cache keys. | ||
| set +e | ||
| echo "Deleting caches..." | ||
| for cacheKey in $cacheKeysForPR | ||
| do | ||
| gh cache delete $cacheKey | ||
| done | ||
| echo "Done" | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GH_REPO: ${{ github.repository }} | ||
| BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge |
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.