Skip to content

Commit 3e8d005

Browse files
authored
ci: Enable ccache (#9)
ccache isn't enabled by default. We need to enable ccache explicitly. We can add `/usr/lib/ccache` to `$PATH` to enable ccache on Ubuntu.
1 parent 32bdfa2 commit 3e8d005

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
path: cache
4242
key: test-ubuntu-ccache-${{ hashFiles('CMakeLists.txt', 'tokenizers/**') }}
4343
restore-keys: test-ubuntu-ccache-
44+
- name: Enable ccache
45+
run: |
46+
echo "/usr/lib/ccache" >> ${GITHUB_PATH}
4447
- name: Install build dependencies
4548
run: |
4649
sudo apt install -y -V \

0 commit comments

Comments
 (0)