forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 1.01 KB
/
ccache-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
SSCCACHE_ERROR_LOG=/tmp/sccache_log.txt SCCACHE_LOG=debug CCACHE_DEBUG=verbose sccache clang -c test.c
cat /tmp/sccache_log.txt
sccache -s