{"id":20186376,"url":"https://github.com/numworks/setup-msys2","last_synced_at":"2025-04-10T06:24:19.564Z","repository":{"id":117517829,"uuid":"212096477","full_name":"numworks/setup-msys2","owner":"numworks","description":"GitHub Action to setup Msys2","archived":false,"fork":false,"pushed_at":"2023-05-06T22:10:24.000Z","size":240,"stargazers_count":26,"open_issues_count":10,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-22T03:12:15.268Z","etag":null,"topics":["gha","msys2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-01T12:58:08.000Z","updated_at":"2023-03-06T13:54:10.000Z","dependencies_parsed_at":"2024-07-26T03:47:18.103Z","dependency_job_id":null,"html_url":"https://github.com/numworks/setup-msys2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fsetup-msys2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fsetup-msys2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fsetup-msys2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fsetup-msys2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numworks","download_url":"https://codeload.github.com/numworks/setup-msys2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224182229,"owners_count":17269435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gha","msys2"],"created_at":"2024-11-14T03:17:00.144Z","updated_at":"2024-11-14T03:17:00.656Z","avatar_url":"https://github.com/numworks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup MSYS2\n\n\u003cp align=\"center\"\u003e\n  \u003ca title=\"Dependency Status\" href=\"https://david-dm.org/numworks/setup-msys2\"\u003e\u003cimg src=\"https://img.shields.io/david/numworks/setup-msys2.svg?longCache=true\u0026logo=npm\u0026label=deps\"\u003e\u003c/a\u003e\u003c!--\n  --\u003e\n  \u003ca title=\"'action' workflow Status\" href=\"https://github.com/numworks/setup-msys2/actions\"\u003e\u003cimg alt=\"'action' workflow Status\" src=\"https://github.com/numworks/setup-msys2/workflows/action/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n**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).\n\nThe 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`.\n\n## Usage\n\n```yaml\n  - uses: numworks/setup-msys2@v1\n  - run: msys2do uname -a\n```\n\n### Options\n\n#### msystem\n\nBy default, `MSYSTEM` is set to `MINGW64`. However, an optional parameter named `msystem` is supported, which expects `MSYS`, `MINGW64` or `MING32`. For example:\n\n```yaml\n  - uses: numworks/setup-msys2@v1\n    with:\n      msystem: MSYS\n```\n\nFurthermore, 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:\n\n```yaml\n  - uses: numworks/setup-msys2@v1\n    with:\n      msystem: MSYS\n  - run: msys2do makepkg-mingw -sCLfc --noconfirm --noprogressbar\n  - run: msys2do pacman --noconfirm -U mingw-w64-*-any.pkg.tar.xz\n  - run: |\n      set MSYSTEM=MINGW64\n      msys2do \u003ccommand to test the package\u003e\n```\n\n#### path-type\n\nBy 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:\n\n```yaml\n  - uses: numworks/setup-msys2@v1\n    with:\n      path-type: inherit\n  - run: msys2do \u003ccommand\u003e\n```\n\n```yaml\n  - uses: numworks/setup-msys2@v1\n  - run: msys2do \u003ccommand\u003e\n    env:\n      MSYS2_PATH_TYPE: inherit\n```\n\n#### update\n\nBy 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`:\n\n```yaml\n  - uses: numworks/setup-msys2@v1\n    with:\n      update: true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumworks%2Fsetup-msys2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumworks%2Fsetup-msys2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumworks%2Fsetup-msys2/lists"}