Fixes #4
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
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 | |
SSCCACHE_ERROR_LOG=/tmp/sccache_log.txt SCCACHE_LOG=debug CCACHE_DEBUG=verbose sccache clang -c test.c | |
test -e /tmp/sccache_log.txt && cat /tmp/sccache_log.txt | |
sccache -s |