-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters