Skip to content

Commit 1a3f3a6

Browse files
committed
ci : add ccache to build-wasm
Attempt to fix ccaching. Debugging... Add CCACHE_COMPILERCHECK. More fixes.
1 parent af80a22 commit 1a3f3a6

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/build-wasm.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,21 @@ jobs:
4545
- name: Verify
4646
run: emcc -v
4747

48+
- name: ccache
49+
uses: ggml-org/ccache-action@v1.2.21
50+
with:
51+
key: wasm-ubuntu-22
52+
evict-old-files: 1d
53+
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
54+
4855
- name: Build
56+
env:
57+
CCACHE_SLOPPINESS: time_macros,include_file_mtime,include_file_ctime
58+
CCACHE_COMPILERCHECK: content
4959
run: |
50-
emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
51-
make
60+
emcmake cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build }} \
61+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
62+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
63+
"-DCMAKE_C_FLAGS=-ffile-prefix-map=$EMSDK=/emsdk" \
64+
"-DCMAKE_CXX_FLAGS=-ffile-prefix-map=$EMSDK=/emsdk"
65+
cmake --build build -j $(nproc)

0 commit comments

Comments
 (0)