File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 29
29
CCACHE_BASEDIR : " ${GITHUB_WORKSPACE}"
30
30
CCACHE_DIR : " ${GITHUB_WORKSPACE}/.ccache"
31
31
CCACHE_COMPRESS : true
32
- CCACHE_COMPRESSLEVEL : 6
32
+ CCACHE_COMPRESSLEVEL : 5
33
+ # Since pixi will install a compiler, the compiler mtime will be changed.
34
+ # This can invalidate the cache (https://ccache.dev/manual/latest.html#config_compiler_check)
35
+ CCACHE_COMPILERCHECK : content
36
+ BUILD_ADVANCED_TESTING : ${{ matrix.BUILD_ADVANCED_TESTING }}
33
37
34
38
strategy :
35
39
fail-fast : false
@@ -56,13 +60,24 @@ jobs:
56
60
57
61
- name : Build candlewick [macOS/Linux]
58
62
env :
63
+ CMAKE_BUILD_PARALLEL_LEVEL : 2
59
64
CANDLEWICK_BUILD_TYPE : ${{ matrix.build_type }}
60
65
run : |
66
+ # Clear ccache statistics
67
+ pixi run -e ${{ matrix.environment }} ccache -z
68
+
61
69
pixi run -e ${{ matrix.environment }} build
62
70
63
71
- name : Test candlewick [macOS/Linux]
64
72
run : |
65
73
pixi run -e ${{ matrix.environment }} ctest --test-dir build --output-on-failure
74
+ pixi shell -e ${{ matrix.environment }}
75
+ python -c "import candlewick"
76
+
77
+ - name : Display ccache statistics
78
+ shell : bash -el {0}
79
+ run : |
80
+ pixi run -e ${{ matrix.environment }} ccache -sv
66
81
67
82
check :
68
83
if : always()
You can’t perform that action at this time.
0 commit comments