{"repo":"msys2/setup-msys2","free":true,"listed":false,"github":"https://github.com/msys2/setup-msys2","clone":"git clone https://github.com/msys2/setup-msys2.git","description":"GitHub Action to setup MSYS2","language":"JavaScript","stars":389,"topics":["msys2","mingw64","mingw32","actions","gha","workflow","windows","bash","ci"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Setup MSYS2 setup-msys2 is a GitHub Action (GHA) to setup an MSYS2 environment (i.e. MSYS, MINGW32, MINGW64, UCRT64, CLANG64 and/or CLANGARM64 shells) It provides: Easy installation and updates Easy package installation including caching for faster re-runs A shell helper for running your commands or your whole job in an MSYS2 environment Usage Then, for scripts: It is also possible to execute specific commands from cmd/powershell scripts/snippets. In order to do so, -c is required: Default shell In order to reduce verbosity, it is possible to set msys2 as the default shell. For example: Build matrix It is common to test some package/tool on multiple environments, which typically requires installing different sets of packages through option install . GitHub Actions' strategy and matrix fields allow to do so, as explained in docs.github.com: Running variations of jobs in a workflow and docs.github.com: jobs. .strategy.matrix . See, for instance: Alternatively, option pacboy allows using a single matrix variable: Furthermore, .github/workflows/PKGBUILD.yml is a Reusable Workflow to build and test a package in GitHub Actions using a PKGBUILD recipe. It can be used along with matrix (a Composite Action), as shown in .github/workflows/Tool.yml. Note: By default, GitHub Actions terminates any running jobs if any job in matrix fails. This default behavior can be disabled by setting fail-fast: false in strategy section. See docs.github.com: jobs. .strategy.fail-fast for more details. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/msys2","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/msys2/setup-msys2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}