From 379b4cab2ad60b19996fac7e859cfce7c7590cdf Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Tue, 15 Oct 2024 00:00:36 +0200 Subject: [PATCH] fix `ccache` for the Node-API unit tests (#79) --- .github/workflows/linux.yml | 13 ++++++++++++- .github/workflows/push.yml | 11 ++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 13a1b5ad70..7d7583a0b3 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -93,11 +93,13 @@ jobs: ENGINE: napi VER: '18' CPPSTD: c++11 + cacheid: -napi - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++11 ASAN: 1 + cacheid: -napi-asan #- SWIGLANG: javascript # ENGINE: node # VER: '6' @@ -123,6 +125,7 @@ jobs: CPPSTD: c++14 SWIG_FEATURES: -async -w470 desc: Async + cacheid: -napi-async - SWIGLANG: javascript ENGINE: napi VER: '18' @@ -130,42 +133,49 @@ jobs: SWIG_FEATURES: -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 ASAN: 1 desc: Async+ASAN + cacheid: -napi-async-locked-asan - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 desc: Async w/ locking + cacheid: -napi-async-locked - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -typescript desc: TypeScript + cacheid: -napi-typescript - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -typescript -async -w470 desc: TypeScript w/ async + cacheid: -napi-typescript-async - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -split desc: Code splitting + cacheid: -napi-splitting - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -split -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 desc: Async w/ splitting & locking + cacheid: -napi-splitting-async - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 COMPILER: emscripten desc: WASM + cacheid: -napi-wasm - SWIGLANG: javascript ENGINE: napi VER: '18' @@ -173,6 +183,7 @@ jobs: COMPILER: emscripten SWIG_FEATURES: -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 desc: WASM w/ async & locking + cacheid: -napi-wasm-async - SWIGLANG: lua - SWIGLANG: lua VER: '5.3' @@ -475,7 +486,7 @@ jobs: - name: Install CCache uses: hendrikmuhs/ccache-action@v1.2 with: - key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.compiler || 'gcc' }}${{ matrix.GCC }} + key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.compiler || 'gcc' }}${{ matrix.GCC }}${{ matrix.cacheid }} # Uncomment to debug via ssh, see https://github.com/mxschmitt/action-tmate # - name: Setup tmate session diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index bda5d33543..12c9bf3d6a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -99,6 +99,7 @@ jobs: CPPSTD: c++14 SWIG_FEATURES: -async -w470 desc: Async + cacheid: -napi-async - SWIGLANG: javascript ENGINE: napi VER: '18' @@ -106,42 +107,49 @@ jobs: SWIG_FEATURES: -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 ASAN: 1 desc: Async+ASAN + cacheid: -napi-async-locked-asan - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 desc: Async w/ locking + cacheid: -napi-async-locked - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -typescript desc: TypeScript + cacheid: -napi-typescript - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -typescript -async -w470 desc: TypeScript w/ async + cacheid: -napi-typescript-async - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -split desc: Code splitting + cacheid: -napi-splitting - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 SWIG_FEATURES: -split -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 desc: Async w/ splitting & locking + cacheid: -napi-splitting-async - SWIGLANG: javascript ENGINE: napi VER: '18' CPPSTD: c++14 COMPILER: emscripten desc: WASM + cacheid: -napi-wasm - SWIGLANG: javascript ENGINE: napi VER: '18' @@ -149,6 +157,7 @@ jobs: COMPILER: emscripten SWIG_FEATURES: -async -async-locking -DSWIG_NAPI_FULL_LOCKING=1 desc: WASM w/ async & locking + cacheid: -napi-wasm-async - SWIGLANG: lua - SWIGLANG: octave CPPSTD: c++11 @@ -243,7 +252,7 @@ jobs: - name: Install CCache uses: hendrikmuhs/ccache-action@v1.2 with: - key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.compiler || 'gcc' }}${{ matrix.GCC }} + key: ${{ matrix.os || 'ubuntu-20.04' }}-${{ matrix.compiler || 'gcc' }}${{ matrix.GCC }}${{ matrix.cacheid }} # Uncomment to debug via ssh, see https://github.com/mxschmitt/action-tmate # - name: Setup tmate session