Description
setup-msys2 is a GitHub Action that sets up an MSYS2 environment in a workflow. It can set up the MSYS, MINGW32, MINGW64, UCRT64, CLANG64 and CLANGARM64 shells. The action installs and updates packages and caches them, so repeated workflow runs are faster. It also includes a shell helper that runs your commands, or a whole job, inside an MSYS2 environment. You can set msys2 as the default shell to shorten workflow files, and run specific commands from cmd or PowerShell by passing a flag. Packages are set with an install option, and a pacboy option lets you use a single matrix variable. For testing across several environments, the README shows how to use GitHub Actions strategy and matrix fields. A reusable workflow builds and tests packages from a PKGBUILD recipe. Setting fail-fast to false keeps other matrix jobs running when one fails. The source is public on GitHub.…
Highlights
- Installs MSYS2 shells in GitHub Actions
- Package install with caching for faster re-runs
- Shell helper to run commands or whole jobs in MSYS2
- Build matrix support with install and pacboy options
- Reusable workflow to build PKGBUILD packages
Ratings & Reviews
No ratings yet
Be the first to rate Setup Msys2.
People also visit
Tartelet
⚙️💻 A macOS app that makes it a breeze to manage multiple GitHub Actions…
Setup Msys2 FAQ
What is setup-msys2?
A GitHub Action that sets up an MSYS2 environment inside a workflow, including the MSYS, MINGW, UCRT and CLANG shells.
Who is it for?
Developers who build or test software with MSYS2 in GitHub Actions, including people who want a build matrix across several environments.
How are packages installed?
Through the install option, or the pacboy option for a single matrix variable. Packages are cached so repeat runs are faster.
Can I build a package from a PKGBUILD?
Yes. A reusable workflow in the repository builds and tests a package from a PKGBUILD recipe.
What are the best Setup Msys2 alternatives?
Popular alternatives to Setup Msys2 include Ekiden, Miller Dev Shell and Tartelet. See all Setup Msys2 alternatives


