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
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,14 @@ The latest tarball available at [repo.msys2.org/distrib/x86_64](http://repo.msys
13
13
## Usage
14
14
15
15
```yaml
16
-
- uses: eine/setup-msys2@v1
16
+
- uses: eine/setup-msys2@v0
17
17
- shell: msys2 {0}
18
-
run: uname -a
18
+
run: |
19
+
uname -a
19
20
```
20
21
21
22
```yaml
22
-
- uses: eine/setup-msys2@v1
23
+
- uses: eine/setup-msys2@v0
23
24
- run: msys2do uname -a
24
25
```
25
26
@@ -30,15 +31,15 @@ The latest tarball available at [repo.msys2.org/distrib/x86_64](http://repo.msys
30
31
By default, `MSYSTEM` is set to `MINGW64`. However, an optional parameter named `msystem` is supported, which expects `MSYS`, `MINGW64` or `MING32`. For example:
31
32
32
33
```yaml
33
-
- uses: eine/setup-msys2@v1
34
+
- uses: eine/setup-msys2@v0
34
35
with:
35
36
msystem: MSYS
36
37
```
37
38
38
39
Furthermore, the environment variable can be overriden. This is useful when multiple commands need to be executed in different contexts. For example, in order to build a PKGBUILD file and then test the installed artifact:
39
40
40
41
```yaml
41
-
- uses: eine/setup-msys2@v1
42
+
- uses: eine/setup-msys2@v0
42
43
with:
43
44
msystem: MSYS
44
45
- shell: msys2
@@ -55,25 +56,36 @@ Furthermore, the environment variable can be overriden. This is useful when mult
55
56
By default, `MSYS2_PATH_TYPE` is set to `strict` by `msys2do`. It is possible to override it either using an option or setting the environment variable explicitly:
56
57
57
58
```yaml
58
-
- uses: eine/setup-msys2@v1
59
+
- uses: eine/setup-msys2@v0
59
60
with:
60
61
path-type: inherit
61
62
- run: msys2do <command>
62
63
```
63
64
64
65
```yaml
65
-
- uses: eine/setup-msys2@v1
66
+
- uses: eine/setup-msys2@v0
66
67
- run: msys2do <command>
67
68
env:
68
69
MSYS2_PATH_TYPE: inherit
69
70
```
70
71
71
72
#### update
72
73
73
-
By default, the installation is not updated; hence package versions are those of the installation tarball. By setting option `update` to `true`, the action will execute `pacman -Syu --no-confirm`:
74
+
By default, the installation is not updated; hence package versions are those of the installation tarball. By setting option `update` to `true`, the action will try to update the runtime and packages cleanly:
75
+
76
+
```yaml
77
+
- uses: eine/setup-msys2@v0
78
+
with:
79
+
update: true
80
+
```
81
+
82
+
#### install
83
+
84
+
Installing additional packages after updating the system is supported through option `install`. The package or list of packages are intalled through `pacman --noconfirm -S`.
0 commit comments