Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/numworks/setup-msys2
GitHub Action to setup Msys2
https://github.com/numworks/setup-msys2
gha msys2
Last synced: about 1 month ago
JSON representation
GitHub Action to setup Msys2
- Host: GitHub
- URL: https://github.com/numworks/setup-msys2
- Owner: numworks
- License: mit
- Created: 2019-10-01T12:58:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T22:10:24.000Z (over 1 year ago)
- Last Synced: 2024-10-22T03:12:15.268Z (2 months ago)
- Topics: gha, msys2
- Language: JavaScript
- Homepage:
- Size: 234 KB
- Stars: 26
- Watchers: 7
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup MSYS2
**setup-msys2** is a JavaScript GitHub Action (GHA) to setup a full-featured [MSYS2](https://www.msys2.org/) environment, using the GHA [toolkit](https://github.com/actions/toolkit).
The latest tarball available at [repo.msys2.org/distrib/x86_64](http://repo.msys2.org/distrib/x86_64/) is cached. Using the action extracts it and provides an entrypoint named `msys2do`.
## Usage
```yaml
- uses: numworks/setup-msys2@v1
- run: msys2do uname -a
```### Options
#### msystem
By default, `MSYSTEM` is set to `MINGW64`. However, an optional parameter named `msystem` is supported, which expects `MSYS`, `MINGW64` or `MING32`. For example:
```yaml
- uses: numworks/setup-msys2@v1
with:
msystem: MSYS
```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:
```yaml
- uses: numworks/setup-msys2@v1
with:
msystem: MSYS
- run: msys2do makepkg-mingw -sCLfc --noconfirm --noprogressbar
- run: msys2do pacman --noconfirm -U mingw-w64-*-any.pkg.tar.xz
- run: |
set MSYSTEM=MINGW64
msys2do
```#### path-type
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:
```yaml
- uses: numworks/setup-msys2@v1
with:
path-type: inherit
- run: msys2do
``````yaml
- uses: numworks/setup-msys2@v1
- run: msys2do
env:
MSYS2_PATH_TYPE: inherit
```#### update
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`:
```yaml
- uses: numworks/setup-msys2@v1
with:
update: true
```