We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af80a22 commit 1a3f3a6Copy full SHA for 1a3f3a6
1 file changed
.github/workflows/build-wasm.yml
@@ -45,7 +45,21 @@ jobs:
45
- name: Verify
46
run: emcc -v
47
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
+
55
- name: Build
56
+ env:
57
+ CCACHE_SLOPPINESS: time_macros,include_file_mtime,include_file_ctime
58
+ CCACHE_COMPILERCHECK: content
59
run: |
- emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- 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