forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 changed file
with
32 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CCache test | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
ccache-test: | ||
runs-on: macos-13 | ||
steps: | ||
- name: Setup ccache | ||
uses: hendrikmuhs/ccache-action@v1 | ||
with: | ||
# A full build of llvm, clang, lld, and lldb takes about 250MB | ||
# of ccache space. There's not much reason to have more than this, | ||
# because we usually won't need to save cache entries from older | ||
# builds. Also, there is an overall 10GB cache limit, and each | ||
# run creates a new cache entry so we want to ensure that we have | ||
# enough cache space for all the tests to run at once and still | ||
# fit under the 10 GB limit. | ||
max-size: 500M | ||
key: ${{ matrix.os }}-ccache-test | ||
variant: sccache | ||
|
||
- name: Test ccache | ||
run: | | ||
echo "int main(){}" > test.c | ||
SCCACHE_DEBUG=verbose sccache clang test.c | ||
sccache -s | ||