Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egor-tensin/setup-mingw
GitHub action to set up MinGW-w64
https://github.com/egor-tensin/setup-mingw
action github-actions mingw mingw-w64
Last synced: about 2 months ago
JSON representation
GitHub action to set up MinGW-w64
- Host: GitHub
- URL: https://github.com/egor-tensin/setup-mingw
- Owner: egor-tensin
- License: mit
- Created: 2020-11-19T00:08:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T22:17:03.000Z (11 months ago)
- Last Synced: 2024-04-14T06:55:34.618Z (5 months ago)
- Topics: action, github-actions, mingw, mingw-w64
- Language: C++
- Homepage:
- Size: 24.4 KB
- Stars: 70
- Watchers: 4
- Forks: 23
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Set up MinGW-w64
================[![Test](https://github.com/egor-tensin/setup-mingw/actions/workflows/test.yml/badge.svg)](https://github.com/egor-tensin/setup-mingw/actions/workflows/test.yml)
This GitHub action sets up MinGW-w64 in your workflow run.
1. Installs MinGW-w64 on either Ubuntu or Windows.
2. Fixes the infamous libwinpthread-1.dll [static linking issue].[static linking issue]: https://stackoverflow.com/q/13768515/514684
Use it in your workflow like this:
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64* `x64` is the default value for the `platform` parameter and can be omitted.
Use `x86` if you want to build 32-bit binaries.
* Set the `cygwin` parameter to `1` to set up MinGW inside an existing Cygwin
installation (see [my other action] for setting up Cygwin itself).
* `cc` and `c++` executables are set up, pointing to the `*-gcc` and `*-g++`
executables.
Disable this by setting the `cc` parameter to `0`.[my other action]: https://github.com/egor-tensin/setup-cygwin
API
---| Input | Value | Default | Description
| --------- | ----- | ------- | -----------
| platform | x64 | ✓ | Install the x86_64 toolchain.
| | *any* | | Install the i686 toolchain.
| cygwin | *any* | ✓ | Install native binaries.
| | 1 | | Install Cygwin packages.
| static | 1 | ✓ | Enable the static-linking workaround.
| | *any* | | Disable the static-linking workaround.
| cc | 1 | ✓ | Set up `cc`/`c++` executables.
| | *any* | | Don't set up `cc`/`c++`.
| hardlinks | *any* | ✓ | Cygwin: don't convert any symlinks.
| | 1 | | Cygwin: convert symlinks in /usr/bin to hardlinks.
| version | | ✓ | Install the default (latest) version.
| | *any* | | Install the specified version, if possible.| Output | Example | Description
| ------- | ------------------------ | -----------
| prefix | x86_64-w64-mingw32 | Cross-compilation toolchain prefix
| gcc | x86_64-w64-mingw32-gcc | `gcc` binary name
| gxx | i686-w64-mingw32-g++ | `g++` binary name
| windres | i686-w64-mingw32-windres | `windres` binary nameLicense
-------Distributed under the MIT License.
See [LICENSE.txt] for details.[LICENSE.txt]: LICENSE.txt