Skip to content

Commit e089a4f

Browse files
committed
Speed up build by fixing ccache integration in build.yml
Fixes #820
1 parent 94c7df0 commit e089a4f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,25 @@ jobs:
3636

3737
- name: ccache
3838
uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2
39+
if: ${{ matrix.platform != 'windows-latest' }}
3940
with:
4041
key: ${{ github.job }}-${{ matrix.platform }}
4142
verbose: 1
42-
create-symlink: ${{ matrix.platform != 'windows-latest' }}
43+
create-symlink: true
44+
45+
- name: Setup cache for clcache
46+
if: ${{ matrix.platform == 'windows-latest' }}
47+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
48+
with:
49+
path: ${{ github.workspace }}\.clcache
50+
key: ${{ github.job }}-${{ matrix.platform }}
4351

4452
- name: Create binary
4553
env:
4654
CCACHE_BASEDIR: ${{ github.workspace }}
4755
CCACHE_NOHASHDIR: true
48-
NUITKA_CACHE_DIR_CCACHE: $HOME/.ccache
56+
NUITKA_CACHE_DIR_CCACHE: ${{ github.workspace }}/.ccache
57+
NUITKA_CACHE_DIR_CLCACHE: ${{ github.workspace }}\.clcache
4958
NUITKA_CCACHE_BINARY: /usr/bin/ccache
5059
run: |
5160
pip install .[build]

0 commit comments

Comments
 (0)