Skip to content

Commit

Permalink
Test for ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Jan 22, 2024
1 parent 50e2581 commit 226f79f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ccache-test.yml
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

0 comments on commit 226f79f

Please sign in to comment.