Skip to content

Commit c64bb01

Browse files
committed
CI-mingw.yml: added ccache
1 parent 924dffa commit c64bb01

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/CI-mingw.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
matrix:
2727
# the MinGW installation in windows-2019 is supposed to be 8.1 but it is 12.2
2828
# the MinGW installation in windows-2022 is not including all necessary packages by default, so just use the older image instead - package versions are he same
29-
# TODO: add 32-bit build?
3029
os: [windows-2019]
3130
fail-fast: false
3231

@@ -41,10 +40,17 @@ jobs:
4140
release: false # use pre-installed
4241
install: >-
4342
mingw-w64-x86_64-lld
43+
mingw-w64-x86_64-ccache
44+
45+
- name: ccache
46+
uses: hendrikmuhs/ccache-action@v1.2
47+
with:
48+
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
4449

4550
# MinGW will always link the binaries even if they already exist. The linking is also extremely slow. So just run the "check" target which includes all the binaries.
4651
- name: Build all and run test
4752
run: |
53+
export PATH="/mingw64/lib/ccache/bin:$PATH"
4854
# set RDYNAMIC to work around broken MinGW detection
4955
make VERBOSE=1 RDYNAMIC=-lshlwapi -j2 check
5056
env:

0 commit comments

Comments
 (0)