You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+71-12Lines changed: 71 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,24 @@ See, for instance:
113
113
- uses: msys2/setup-msys2@v2
114
114
with:
115
115
msystem: ${{matrix.sys}}
116
-
install: mingw-w64-${{matrix.env}}-toolchain
116
+
install: mingw-w64-${{matrix.env}}-openssl
117
+
```
118
+
119
+
Alternatively, option `pacboy` allows using a single matrix variable:
120
+
121
+
```yml
122
+
strategy:
123
+
matrix:
124
+
sys:
125
+
- mingw64
126
+
- mingw32
127
+
- ucrt64 # Experimental!
128
+
- clang64 # Experimental!
129
+
steps:
130
+
- uses: msys2/setup-msys2@v2
131
+
with:
132
+
msystem: ${{matrix.sys}}
133
+
pacboy: openssl:p
117
134
```
118
135
119
136
Find similar patterms in the following workflows:
@@ -176,38 +193,80 @@ This option corresponds to the `MSYS2_PATH_TYPE` setting in MSYS2; hence it can
176
193
See [msys2/MSYS2-packages: filesystem/profile](https://github.com/msys2/MSYS2-packages/blob/915946a637e1f2b7e26e32782f3af322009293db/filesystem/profile#L28-L45)
177
194
for further details about the configuration of each option.
178
195
179
-
#### release
196
+
#### update
180
197
181
-
By default (`true`), retrieve and extract base installation from upstream GitHub Releases.
182
-
If set to `false`, the installation available in the virtual environment is used:
198
+
By default, the installation is not updated; hence package versions are those of the installation tarball.
199
+
By setting option `update` to `true`, the action will try to update the runtime and packages cleanly:
183
200
184
201
```yaml
185
202
- uses: msys2/setup-msys2@v2
186
203
with:
187
-
release: false
204
+
update: true
188
205
```
189
206
190
-
#### update
207
+
#### install
191
208
192
-
By default, the installation is not updated; hence package versions are those of the installation tarball.
193
-
By setting option `update` to `true`, the action will try to update the runtime and packages cleanly:
209
+
Installing additional packages after updating the system is supported through option `install`.
210
+
The package or list of packages are installed through `pacman --noconfirm -S --needed --overwrite *`.
194
211
195
212
```yaml
196
213
- uses: msys2/setup-msys2@v2
197
214
with:
198
215
update: true
216
+
install: >-
217
+
git
218
+
base-devel
199
219
```
200
220
201
-
#### install
221
+
#### pacboy
202
222
203
-
Installing additional packages after updating the system is supported through option `install`.
204
-
The package or list of packages are installed through `pacman --noconfirm -S --needed`.
223
+
Installing additional packages with [pacboy](https://www.msys2.org/docs/package-management/#avoiding-writing-long-package-names) after updating the system is supported through option `pacboy`.
224
+
The package or list of packages are installed through `pacboy --noconfirm -S --needed`.
205
225
206
226
```yaml
227
+
strategy:
228
+
fail-fast: false
229
+
matrix:
230
+
sys: [ MINGW64, MINGW32, UCRT64, CLANG64 ]
231
+
steps:
207
232
- uses: msys2/setup-msys2@v2
208
233
with:
209
-
update: true
234
+
msystem: ${{matrix.sys}}
210
235
install: >-
211
236
git
212
237
base-devel
238
+
pacboy: >-
239
+
openssl:p
240
+
```
241
+
242
+
#### release
243
+
244
+
By default (`true`), retrieve and extract base installation from upstream GitHub Releases.
245
+
If set to `false`, the installation available in the virtual environment is used:
246
+
247
+
```yaml
248
+
- uses: msys2/setup-msys2@v2
249
+
with:
250
+
release: false
251
+
```
252
+
253
+
#### location
254
+
255
+
Specify the location where to install msys2:
256
+
257
+
```yaml
258
+
- uses: msys2/setup-msys2@v2
259
+
with:
260
+
location: D:\
261
+
```
262
+
263
+
#### platform-check-severity
264
+
265
+
By default (`fatal`), throw an error if the runner OS is not Windows.
266
+
If set to `warn`, simply log a message and skip the rest:
0 commit comments