Skip to content

Commit db03b1e

Browse files
committed
update README.md
1 parent 3836105 commit db03b1e

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ The latest tarball available at [repo.msys2.org/distrib/x86_64](http://repo.msys
1313
## Usage
1414

1515
```yaml
16-
- uses: eine/setup-msys2@v1
16+
- uses: eine/setup-msys2@v0
1717
- shell: msys2 {0}
18-
run: uname -a
18+
run: |
19+
uname -a
1920
```
2021
2122
```yaml
22-
- uses: eine/setup-msys2@v1
23+
- uses: eine/setup-msys2@v0
2324
- run: msys2do uname -a
2425
```
2526
@@ -30,15 +31,15 @@ The latest tarball available at [repo.msys2.org/distrib/x86_64](http://repo.msys
3031
By default, `MSYSTEM` is set to `MINGW64`. However, an optional parameter named `msystem` is supported, which expects `MSYS`, `MINGW64` or `MING32`. For example:
3132

3233
```yaml
33-
- uses: eine/setup-msys2@v1
34+
- uses: eine/setup-msys2@v0
3435
with:
3536
msystem: MSYS
3637
```
3738

3839
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:
3940

4041
```yaml
41-
- uses: eine/setup-msys2@v1
42+
- uses: eine/setup-msys2@v0
4243
with:
4344
msystem: MSYS
4445
- shell: msys2
@@ -55,25 +56,36 @@ Furthermore, the environment variable can be overriden. This is useful when mult
5556
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:
5657

5758
```yaml
58-
- uses: eine/setup-msys2@v1
59+
- uses: eine/setup-msys2@v0
5960
with:
6061
path-type: inherit
6162
- run: msys2do <command>
6263
```
6364

6465
```yaml
65-
- uses: eine/setup-msys2@v1
66+
- uses: eine/setup-msys2@v0
6667
- run: msys2do <command>
6768
env:
6869
MSYS2_PATH_TYPE: inherit
6970
```
7071

7172
#### update
7273

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`.
7485

7586
```yaml
76-
- uses: eine/setup-msys2@v1
87+
- uses: eine/setup-msys2@v0
7788
with:
7889
update: true
90+
install: 'git base-devel'
7991
```

0 commit comments

Comments
 (0)