File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -393,8 +393,20 @@ jobs:
393393 working-directory : tools/wasm
394394 run : npm i
395395
396+ - name : Setup ccache
397+ uses : hendrikmuhs/ccache-action@v1.2
398+ with :
399+ key : wasm-${{ runner.os }}-${{ github.ref }}
400+ max-size : 2G
401+ restore-keys : |
402+ wasm-${{ runner.os }}-refs/heads/master
403+ wasm-${{ runner.os }}-
404+
396405 - name : Build WebAssembly package
397406 working-directory : tools/wasm
407+ env :
408+ CMAKE_C_COMPILER_LAUNCHER : ccache
409+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
398410 run : |
399411 source /home/runner/emsdk/emsdk_env.sh
400412 npm run build
@@ -407,19 +419,26 @@ jobs:
407419 run : make clean
408420
409421 - name : Kernel build & test
422+ env :
423+ CMAKE_C_COMPILER_LAUNCHER : ccache
424+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
410425 run : |
411426 source /home/runner/emsdk/emsdk_env.sh
412427 make wasmtest
413428
414429 - name : Kernel build & test in memory
430+ env :
431+ CMAKE_C_COMPILER_LAUNCHER : ccache
432+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
433+ IN_MEM_MODE : true
415434 run : |
416435 source /home/runner/emsdk/emsdk_env.sh
417436 make wasmtest
418- env :
419- IN_MEM_MODE : true
420437
421438 - name : Kernel build & test (single-threaded)
422439 env :
440+ CMAKE_C_COMPILER_LAUNCHER : ccache
441+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
423442 SINGLE_THREADED : true
424443 run : |
425444 make clean
Original file line number Diff line number Diff line change 4444 - name : Verify Emscripten
4545 run : emcc -v
4646
47+ - name : Setup ccache
48+ uses : hendrikmuhs/ccache-action@v1.2
49+ with :
50+ key : wasm-${{ runner.os }}-${{ github.ref }}
51+ max-size : 2G
52+ restore-keys : |
53+ wasm-${{ runner.os }}-refs/heads/master
54+ wasm-${{ runner.os }}-
55+
4756 - name : Build WebAssembly package
4857 working-directory : tools/wasm
58+ env :
59+ CMAKE_C_COMPILER_LAUNCHER : ccache
60+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
4961 run : |
5062 npm run build
5163
@@ -62,19 +74,26 @@ jobs:
6274 run : make clean
6375
6476 - name : Kernel build & test
77+ env :
78+ CMAKE_C_COMPILER_LAUNCHER : ccache
79+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
6580 run : |
6681 source /home/runner/emsdk/emsdk_env.sh
6782 make wasmtest
6883
6984 - name : Kernel build & test in memory
85+ env :
86+ CMAKE_C_COMPILER_LAUNCHER : ccache
87+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
88+ IN_MEM_MODE : true
7089 run : |
7190 source /home/runner/emsdk/emsdk_env.sh
7291 make wasmtest
73- env :
74- IN_MEM_MODE : true
7592
7693 - name : Kernel build & test (single-threaded)
7794 env :
95+ CMAKE_C_COMPILER_LAUNCHER : ccache
96+ CMAKE_CXX_COMPILER_LAUNCHER : ccache
7897 SINGLE_THREADED : true
7998 run : |
8099 make clean
You can’t perform that action at this time.
0 commit comments