Skip to content

Commit f6f0cfc

Browse files
committed
CI: Remove ruby < 3.2 from test matrix on Windows
Ruby < 3.2 is not compatible to gcc-15 and patches will not be backported since it's EOL now. Unfortunately MSYS2 is a rolling release with no option for an older gcc. Althought setup-ruby installs an older gcc-14.2 package by default, it fails to install further packages per pacman due to dependencies: ```sh $ pacman.exe -Sy --noconfirm --noprogressbar --needed --disable-download-timeout mingw-w64-x86_64-postgresql resolving dependencies... looking for conflicting packages... error: failed to prepare transaction (could not satisfy dependencies) :: installing mingw-w64-x86_64-gcc-libs (15.1.0-8) breaks dependency 'mingw-w64-x86_64-gcc-libs=14.2.0-3' required by mingw-w64-x86_64-gcc ```
1 parent b77e86c commit f6f0cfc

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/binary-gems.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ jobs:
6363
matrix:
6464
include:
6565
- os: windows-latest
66-
ruby: "3.3"
66+
ruby: "3.4"
6767
platform: "x64-mingw-ucrt"
6868
- os: windows-latest
69-
ruby: "3.1.4-1"
69+
ruby: "3.2.9-1"
7070
platform: "x86-mingw32"
7171
PGVERSION: 10.20-1-windows
7272
- os: windows-latest
73-
ruby: "2.7"
74-
platform: "x64-mingw32"
73+
ruby: "3.2"
74+
platform: "x64-mingw-ucrt"
7575
PGVERSION: 16.6-1-windows-x64
7676
- os: ubuntu-latest
7777
ruby: "3.2"
@@ -135,7 +135,6 @@ jobs:
135135
echo "PGPASSWORD=" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
136136
137137
- run: echo $env:PATH
138-
- run: gem update --system 3.3.26
139138
- run: bundle install
140139
- run: gem install --local pg-*${{ matrix.platform }}.gem --verbose
141140
- name: Run specs

.github/workflows/source-gem.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
PGVERSION: 17.0-1-windows-x64
4848
PGVER: "17"
4949
- os: windows
50-
ruby: "2.7"
50+
ruby: "3.2"
5151
PGVERSION: 10.20-1-windows-x64
5252
PGVER: "10"
5353
- os: windows
@@ -131,7 +131,6 @@ jobs:
131131
sudo mv /Library/PostgreSQL/$PGVER/pgsql/* /Library/PostgreSQL/$PGVER/ && \
132132
echo /Library/PostgreSQL/$PGVER/bin >> $GITHUB_PATH
133133
134-
- run: gem update --system 3.3.26
135134
- run: bundle install
136135

137136
- run: gem install --local *.gem --verbose
@@ -143,10 +142,16 @@ jobs:
143142
TRUFFLERUBYOPT: --experimental-options --keep-handles-alive
144143
run: ruby -rpg -S rspec spec/**/*_spec.rb -cfdoc
145144

146-
- name: Print logs if job failed
145+
- name: Print db logs if job failed
147146
if: ${{ failure() && matrix.os == 'windows' }}
148147
run: ridk exec cat tmp_test_specs/*.log
149148

150-
- name: Print logs if job failed
149+
- name: Print db logs if job failed
151150
if: ${{ failure() && matrix.os != 'windows' }}
152151
run: cat tmp_test_specs/*.log
152+
153+
- name: Print mkmf logs if job failed on Windows-head
154+
if: ${{ failure() && matrix.os == 'windows' && matrix.ruby == 'head' }}
155+
run: |
156+
ridk exec cat D:/rubyinstaller-head-*/lib/ruby/gems/*/extensions/*/*/*/mkmf.log
157+
ridk exec du D:/rubyinstaller-head-*

0 commit comments

Comments
 (0)