Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Use it in your workflow like this:
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
version: 10.2.0

* `x64` is the default value for the `platform` parameter and can be omitted.
Use `x86` if you want to build 32-bit binaries.
Expand All @@ -34,6 +35,8 @@ API
| --------- | ------- | ------- | -----------
| platform | x64 | ✓ | Install the x86_64 toolchain.
| | *any* | | Install the i686 toolchain.
| version | 8.1.0 | ✓ | Install a specific version of the toolchain.
| | *any* | | Install the i686 toolchain.
| cygwin | *any* | ✓ | Install native binaries.
| | 1 | | Install Cygwin packages.
| static | 1 | ✓ | Enable the static-linking workaround.
Expand Down
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
description: Enable static linking workaround
required: false
default: 1
version:
description: Version of Mingw and Tools
required: false
default: 8.1.0
cc:
description: Set up cc/c++ executables
required: false
Expand Down Expand Up @@ -49,6 +53,7 @@ runs:
New-Variable windows_host -Value ($os -eq 'Windows' -and !$cygwin_host) -Option Constant

New-Variable x64 -Value ('${{ inputs.platform }}' -eq 'x64') -Option Constant
New-Variable version -Value '${{ inputs.version }}' -Option Constant
New-Variable static_workaround -Value ('${{ inputs.static }}' -eq '1') -Option Constant

$prefix32 = 'i686-w64-mingw32'
Expand Down Expand Up @@ -154,7 +159,7 @@ runs:
# any announcements).
# b) It was seemingly built without threading (no <mutex>,
# <thread>, etc.).
$version = '8.1.0'
# $version = '8.1.0'

if ($x64) {
# If the 32-bit version is installed, we won't detect that.
Expand Down