Skip to content

Commit 3d41a53

Browse files
glaziermagclaude
andcommitted
CI: build the MINGW32 msys2 job without ccache
MSYS2 dropped mingw-w64-i686-ccache on 2026-11-09 (msys2/MINGW-packages #33408, "Drop leaf mingw32 packages, part 5"). Since then the msys2 (MINGW32, int32, Release) job fails in "Install build dependencies" with "target not found: mingw-w64-i686-ccache", before it builds or tests anything. Mark the MINGW32 matrix entry no-ccache, the way fc-pkg already handles the missing i686 gfortran, and skip the ccache package, the ccache steps and the compiler launcher for it. The other environments are unchanged. The msys build of ccache is not a substitute: it cannot find the native compiler from the Windows path that CMake passes to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent dbf2c24 commit 3d41a53

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎.github/workflows/dynamic_arch.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)