-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (46 loc) · 1.39 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: 'Setup WinLibs'
description: |
Install the WinLibs build of gcc and optionally LLVM + clang.
inputs:
tag:
default: 'latest'
description: |
Release tag of WinLibs.
Defaults to the tag with the newest version of gcc.
with_clang:
default: false
description: |
Install with LLVM + clang. Otherwise just install gcc.
destination:
required: false
description: |
Location to install into. The `mingw32` folder will be placed in this
folder so that the path to gcc would be `$destination/mingw32/bin/gcc`.
Defaults to the value of `%localappdata%`.
add_to_path:
default: true
description: |
If true prepend the `bin` directory to `$PATH`.
architecture:
default: x86_64
description: |
Which architecture to install.
Either `x86_64` or `64` for 64 bit or `i686` or `32` for 32 bit.
outputs:
bin:
value: '${{ steps.main.outputs.bin }}'
description: |
A full path to the `bin` directory containing gcc.
root:
value: '${{ steps.main.outputs.root }}'
description: |
The `mingw32` folder at the root of a WinLibs bundle.
runs:
using: "composite"
steps:
- run: echo '${{ toJson(inputs) }}' | python -m json.tool
shell: bash
- run: python '${{ github.action_path }}/install.py' --config '${{ toJson(inputs) }}' --token ${{ github.token }}
id: main
shell: bash