Skip to content

Commit 508eab5

Browse files
committed
Fix gcc installation on macOS CI runners
1 parent a8571bd commit 508eab5

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/test_macos.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- uses: actions/checkout@v6
8787

8888
- name: Install XCode
89-
if: ${{ contains(matrix.os, 'macos-15') }}
89+
if: ${{ contains(matrix.os, 'macos-15') || contains(matrix.os, 'macos-26') }}
9090
uses: maxim-lobanov/setup-xcode@v1
9191
with:
9292
xcode-version: latest-stable
@@ -109,6 +109,18 @@ jobs:
109109
run:
110110
brew reinstall gcc@14
111111

112+
- name: Reinstall GCC 14 on macOS 26
113+
if: ${{ contains(matrix.os, 'macos-26') && contains(matrix.c_compiler, 'gcc-14') }}
114+
shell: bash
115+
run:
116+
brew reinstall gcc@14
117+
118+
- name: Reinstall GCC 15 on macOS 26
119+
if: ${{ contains(matrix.os, 'macos-26') && contains(matrix.c_compiler, 'gcc-15') }}
120+
shell: bash
121+
run:
122+
brew reinstall gcc@15
123+
112124
- name: Building and testing bit7z
113125
uses: ./.github/actions/ci_action
114126
with:

0 commit comments

Comments
 (0)