@@ -2,6 +2,9 @@ name: build
2
2
3
3
on : [push, pull_request]
4
4
5
+ permissions :
6
+ contents : read
7
+
5
8
jobs :
6
9
build :
7
10
runs-on : windows-latest
34
37
with :
35
38
name : install
36
39
path : _dest/
40
+
37
41
minimal-sdk-artifact :
38
42
runs-on : windows-latest
39
43
needs : [build]
@@ -107,8 +111,65 @@ jobs:
107
111
with :
108
112
name : git-artifacts
109
113
path : git-artifacts.tar.gz
114
+
110
115
test-minimal-sdk :
111
116
needs : [minimal-sdk-artifact]
112
117
uses : git-for-windows/git-sdk-64/.github/workflows/test-ci-artifacts.yml@main
113
118
with :
114
119
git-artifacts-extract-location : ${{ needs.minimal-sdk-artifact.outputs.git-artifacts-extract-location }}
120
+
121
+ generate-msys2-tests-matrix :
122
+ runs-on : ubuntu-latest
123
+ outputs :
124
+ matrix : ${{ steps.matrix.outputs.matrix }}
125
+ steps :
126
+ - id : matrix
127
+ uses : msys2/msys2-tests/gha-matrix-gen@main
128
+
129
+ msys2-tests :
130
+ needs : [build, generate-msys2-tests-matrix]
131
+ strategy :
132
+ fail-fast : false
133
+ matrix :
134
+ include : ${{ fromJson(needs.generate-msys2-tests-matrix.outputs.matrix) }}
135
+
136
+ name : msys2-tests ${{ matrix.msystem }}-${{ matrix.cc }}
137
+ runs-on : ${{ matrix.runner }}
138
+ env :
139
+ CC : ${{ matrix.cc }}
140
+ CXX : ${{ matrix.cxx }}
141
+ FC : ${{ matrix.fc }}
142
+ steps :
143
+ - id : msys2
144
+ uses : msys2/setup-msys2@v2
145
+ with :
146
+ msystem : ${{ matrix.msystem }}
147
+ update : true
148
+ install : ${{ matrix.packages }}
149
+
150
+ - name : Add staging repo
151
+ shell : msys2 {0}
152
+ run : |
153
+ sed -i '1s|^|[staging]\nServer = https://repo.msys2.org/staging/\nSigLevel = Never\n|' /etc/pacman.conf
154
+
155
+ - name : Update using staging
156
+ shell : pwsh
157
+ run : |
158
+ msys2 -c 'pacman --noconfirm -Suuy'
159
+ $ErrorActionPreference = 'Stop'
160
+ $PSNativeCommandUseErrorActionPreference = $true
161
+ msys2 -c 'pacman --noconfirm -Suu'
162
+
163
+ - name : Download msys2-runtime artifact
164
+ uses : actions/download-artifact@v4
165
+ with :
166
+ name : install
167
+ path : ${{ steps.msys2.outputs.msys2-location }}
168
+
169
+ - name : uname -a
170
+ shell : msys2 {0}
171
+ run : uname -a
172
+
173
+ - name : Run tests
174
+ uses : msys2/msys2-tests@main
175
+
0 commit comments