47
47
PGVERSION : 17.0-1-windows-x64
48
48
PGVER : " 17"
49
49
- os : windows
50
- ruby : " 2.7 "
50
+ ruby : " 3.2 "
51
51
PGVERSION : 10.20-1-windows-x64
52
52
PGVER : " 10"
53
53
- os : windows
88
88
with :
89
89
ruby-version : ${{ matrix.ruby }}
90
90
91
+ - name : Print tool versions
92
+ run : |
93
+ ruby -v
94
+ gem env
95
+ gcc -v
96
+
91
97
- name : Download gem from build job
92
98
uses : actions/download-artifact@v4
93
99
with :
98
104
shell : cmd
99
105
run : ridk exec sh -c "pacman --sync --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-gcc"
100
106
107
+ - run : bundle install
108
+
101
109
- name : Download PostgreSQL Windows
102
110
if : matrix.os == 'windows'
103
111
run : |
@@ -109,7 +117,7 @@ jobs:
109
117
110
118
$(new-object net.webclient).DownloadFile("http://get.enterprisedb.com/postgresql/postgresql-$env:PGVERSION-binaries.zip", "postgresql-binaries.zip")
111
119
Unzip "postgresql-binaries.zip" "."
112
- echo "$pwd/pgsql/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
120
+ echo "$env:RI_DEVKIT$env:MINGW_PREFIX/bin;$env:RI_DEVKIT/usr/bin;$ pwd/pgsql/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
113
121
echo "PGUSER=$env:USERNAME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
114
122
echo "PGPASSWORD=" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
115
123
@@ -131,9 +139,7 @@ jobs:
131
139
sudo mv /Library/PostgreSQL/$PGVER/pgsql/* /Library/PostgreSQL/$PGVER/ && \
132
140
echo /Library/PostgreSQL/$PGVER/bin >> $GITHUB_PATH
133
141
134
- - run : gem update --system 3.3.26
135
- - run : bundle install
136
-
142
+ - run : echo $env:PATH
137
143
- run : gem install --local *.gem --verbose
138
144
139
145
- name : Run specs
@@ -143,10 +149,16 @@ jobs:
143
149
TRUFFLERUBYOPT : --experimental-options --keep-handles-alive
144
150
run : ruby -rpg -S rspec spec/**/*_spec.rb -cfdoc
145
151
146
- - name : Print logs if job failed
152
+ - name : Print db logs if job failed
147
153
if : ${{ failure() && matrix.os == 'windows' }}
148
154
run : ridk exec cat tmp_test_specs/*.log
149
155
150
- - name : Print logs if job failed
156
+ - name : Print db logs if job failed
151
157
if : ${{ failure() && matrix.os != 'windows' }}
152
158
run : cat tmp_test_specs/*.log
159
+
160
+ - name : Print mkmf logs if job failed on Windows-head
161
+ if : ${{ failure() && matrix.os == 'windows' && matrix.ruby == 'head' }}
162
+ run : |
163
+ ridk exec cat c:/rubyinstaller-head-*/lib/ruby/gems/*/extensions/*/*/*/mkmf.log || ridk exec cat d:/rubyinstaller-head-*/lib/ruby/gems/*/extensions/*/*/*/mkmf.log
164
+ ridk exec gcc -v
0 commit comments