-
-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (60 loc) · 2.18 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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Setup Mono
description: Setup mono builds and mono base class libraries.
inputs:
mono-release:
description: The release file to download
default: ""
mono-bcl:
description: The release bcl file to download
default: ""
mono-installs-path:
description: Path to dump the mono-release into
default: $HOME/mono-installs
mono-bcl-path:
description: Path to dump the mono-bcl into
default: $HOME/mono-bcls
mono-build-repo:
description: Github repository to download the prebuilt mono releaes from
default: "godotengine/godot-mono-builds"
mono-build-tag:
description: Release tag to download from the mono-build-repo
default: "release-5299efd"
runs:
using: "composite"
steps:
- name: Setup default inputs
shell: bash
run: |
echo "INPUT_MONO_BUILD_REPO=${{ inputs.mono-build-repo != '' && inputs.mono-build-repo }}" >> $GITHUB_ENV
echo "INPUT_MONO_BUILD_TAG=${{ inputs.mono-build-tag != '' && inputs.mono-build-tag }}" >> $GITHUB_ENV
- name: Download mono release ${{ inputs.mono-release }}
if: ${{ inputs.mono-release != '' }}
uses: dsaltares/fetch-gh-release-asset@master
with:
# Hacky fix since env aren't passing through
repo: ${{ inputs.mono-build-repo }}
version: "tags/release-5299efd"
file: "${{ inputs.mono-release }}.zip"
- name: Extract mono release
if: ${{ inputs.mono-release != '' }}
shell: bash
run: |
7z x "${{ inputs.mono-release }}.zip" -o${{ inputs.mono-installs-path }}
- name: Download mono base class library ${{ inputs.mono-bcl }}
if: ${{ inputs.mono-bcl != '' }}
uses: dsaltares/fetch-gh-release-asset@master
with:
# Hacky fix since env aren't passing through
repo: ${{ inputs.mono-build-repo }}
version: "tags/release-5299efd"
file: "${{ inputs.mono-bcl }}.zip"
- name: Extract mono base class library
if: ${{ inputs.mono-bcl != '' }}
shell: bash
run: |
mkdir -p ${{ inputs.mono-bcl-path }}
7z x "${{ inputs.mono-bcl }}.zip" -otemp
pushd temp
mv -v * ${{ inputs.mono-bcl-path }}
popd
rm -r temp