@@ -208,6 +208,7 @@ jobs:
208208 - msystem : MINGW32
209209 idx : int32
210210 fc-pkg :
211+ no-ccache : true # MSYS2 dropped mingw-w64-i686-ccache
211212 - msystem : CLANG64
212213 idx : int32
213214 fc-pkg : fc:p
@@ -264,12 +265,13 @@ jobs:
264265 ${{ matrix.fc-pkg }}
265266 cmake:p
266267 ninja:p
267- ccache:p
268+ ${{ !matrix.no- ccache && 'ccache:p' || '' }}
268269
269270 - name : Checkout repository
270271 uses : actions/checkout@v6
271272
272273 - name : Prepare ccache
274+ if : ${{ !matrix.no-ccache }}
273275 # Get cache location of ccache
274276 # Create key that is used in action/cache/restore and action/cache/save steps
275277 id : ccache-prepare
@@ -280,6 +282,7 @@ jobs:
280282 echo "key=ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}-${{ github.sha }}" >> $GITHUB_OUTPUT
281283
282284 - name : Restore ccache
285+ if : ${{ !matrix.no-ccache }}
283286 uses : actions/cache/restore@v5
284287 with :
285288 path : ${{ steps.ccache-prepare.outputs.ccachedir }}
@@ -290,6 +293,7 @@ jobs:
290293 ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}
291294
292295 - name : Configure ccache
296+ if : ${{ !matrix.no-ccache }}
293297 # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota.
294298 run : |
295299 which ccache
@@ -312,18 +316,19 @@ jobs:
312316 -DNUM_THREADS=64 \
313317 -DTARGET=${{ matrix.target || 'CORE2' }} \
314318 ${{ matrix.idx64-flags }} \
315- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
316- -DCMAKE_Fortran_COMPILER_LAUNCHER=ccache \
319+ ${{ !matrix.no-ccache && '-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_Fortran_COMPILER_LAUNCHER=ccache' || '' }} \
317320 ..
318321
319322 - name : Build OpenBLAS
320323 run : cd build && cmake --build .
321324
322325 - name : Show ccache status
326+ if : ${{ !matrix.no-ccache }}
323327 continue-on-error : true
324328 run : ccache -s
325329
326330 - name : Save ccache
331+ if : ${{ !matrix.no-ccache }}
327332 # Save the cache after we are done (successfully) building
328333 uses : actions/cache/save@v5
329334 with :
0 commit comments