Skip to content

Commit e47bea4

Browse files
authored
Merge pull request #224 from OpenBrickProtocolFoundation/msys2_pin_package_versions
feat: Pin MSYS2 package version in CI
2 parents 10dead9 + c23a7aa commit e47bea4

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
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: |

tools/options/meson.build

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,7 @@ if get_option('run_in_ci')
8282
'compilers': [msvc_compiler_current],
8383
},
8484
'msys2': {
85-
# TODO: this needs to be 14, but we can't pin the package atm, see https://github.com/OpenBrickProtocolFoundation/oopetris/pull/224
86-
'compilers': [
87-
{
88-
'id': 'gcc',
89-
'checks': ['>=15', '<16'],
90-
},
91-
],
85+
'compilers': [gcc_14_compiler],
9286
},
9387
'linux': {
9488
'compilers': [clang_19_compiler, gcc_14_compiler],

0 commit comments

Comments
 (0)