Skip to content

Commit aacd2ad

Browse files
committed
feat: use a self created github action, to pin msys2 packages to a ceratin msys2_pin_package_versions
- use Totto16/msys2-install-packages-pinned to pin gcc to v14
1 parent 10dead9 commit aacd2ad

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,13 @@ jobs:
111111
arch: x64
112112
toolset: '14.43'
113113

114-
- name: Setup MYSYS2 (Windows)
114+
- name: Setup MSYS2 (Windows)
115115
if: matrix.config.os == 'windows' && ( matrix.config.environment == 'mingw' || matrix.config.environment == 'ucrt' )
116116
uses: msys2/setup-msys2@v2
117117
with:
118118
msystem: ${{matrix.config.environment == 'mingw' && 'MINGW64' || 'UCRT64'}}
119119
update: true
120120
install: >-
121-
mingw-w64-${{matrix.config.architecture}}-gcc
122121
mingw-w64-${{matrix.config.architecture}}-ninja
123122
mingw-w64-${{matrix.config.architecture}}-python
124123
mingw-w64-${{matrix.config.architecture}}-python-pip
@@ -131,6 +130,14 @@ jobs:
131130
mingw-w64-${{matrix.config.architecture}}-cmake
132131
git
133132
133+
- name: Setup GCC (MSYS2)
134+
if: matrix.config.os == 'windows' && ( matrix.config.environment == 'mingw' || matrix.config.environment == 'ucrt' )
135+
uses: Totto16/msys2-install-packages-pinned@v1
136+
with:
137+
msystem: ${{matrix.config.environment == 'mingw' && 'MINGW64' || 'UCRT64'}}
138+
install: gcc=14 gcc-libs=!
139+
140+
134141
- name: Setup Clang (Linux) (libc++)
135142
if: matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib
136143
run: |

0 commit comments

Comments
 (0)