Skip to content

Commit

Permalink
Enable ccache for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jan 6, 2025
1 parent cb6423f commit c45121b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,15 @@ jobs:
python-version: '3.11'

- name: CCache
if: matrix.os == 'linux' || matrix.os == 'mac'
uses: hendrikmuhs/[email protected]
with:
max-size: ${{ matrix.arch == 'arm64' && '3G' || '2G' }}
max-size: '2G'
key: ccache-${{ matrix.os }}-${{ matrix.arch }}

- name: Build
env:
CCACHE_SLOPPINESS: time_macros
shell: bash
run: |
npx zx build.mjs ${{ matrix.arch }} --verbose
run: npx zx build.mjs ${{ matrix.arch }} --verbose

- name: Test
if: matrix.arch == runner.arch
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ correctly in Yode.
## Build

```bash
$ node ./build.js [x64|ia32|arm64]
$ npx zx ./build.mjs [x64|arm64]
```

## License
Expand Down
1 change: 1 addition & 0 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ try {
'CC.host_wrapper': ccache,
'CXX.host_wrapper': ccache,
})
console.log('Using ccache located at', ccache)
} catch {}

// Find Python 3
Expand Down

0 comments on commit c45121b

Please sign in to comment.