File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 29
29
pixi-version : v0.45.0
30
30
cache : true
31
31
environments : ${{ matrix.environment }}
32
+ - name : Prepare compiler cache
33
+ id : prep-ccache
34
+ shell : bash
35
+ run : |
36
+ mkdir -p "${CCACHE_DIR}"
37
+ echo "dir=$CCACHE_DIR" >> $GITHUB_OUTPUT
38
+ NOW=$(date -u +"%F-%T")
39
+ echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
40
+ - name : Setup compiler cache
41
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
42
+ id : cache-ccache
43
+ with :
44
+ path : ${{ steps.prep-ccache.outputs.dir }}
45
+ key : ${{ github.workflow }}-ccache-${{ matrix.environment }}-${{ matrix.runs-on }}-${{ steps.prep-ccache.outputs.timestamp }}
46
+ restore-keys : ${{ github.workflow }}-ccache-${{ matrix.environment }}-${{ matrix.runs-on }}-
32
47
- name : Build xsf
33
48
run : pixi run --environment=tests-ci build-tests-ci
34
49
- name : Run tests
40
55
with :
41
56
name : cov-html-${{ matrix.runs-on }}
42
57
path : build/coverage_report/**
58
+ - name : Ccache performance
59
+ shell : bash -l {0}
60
+ run : pixi run --environment=tests-ci ccache -s
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ configure-coverage.cmd = [
85
85
]
86
86
configure-coverage.cwd = " ."
87
87
configure-coverage.env.XSREF_TABLES_PATH = " $PWD/xsref/tables"
88
+ configure-coverage.env.CC = " ccache $CC"
89
+ configure-coverage.env.CXX = " ccache $CXX"
88
90
# Open coverage report
89
91
open-coverage.cmd = [" open" , " index.html" ]
90
92
open-coverage.cwd = " build/coverage_report"
You can’t perform that action at this time.
0 commit comments