Add ccache to CI (#375)

This commit is contained in:
Fangjun Kuang
2023-10-20 11:17:37 +08:00
committed by GitHub
parent fe0c8bfc51
commit 2a932aca86
32 changed files with 153 additions and 53 deletions

View File

@@ -39,10 +39,15 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.os }}
- name: Display java version
shell: bash
run: |
@@ -52,5 +57,9 @@ jobs:
- name: Run java test
shell: bash
run: |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --version
cd ./java-api-examples
./runtest.sh