diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..092f8f8 --- /dev/null +++ b/.github/workflows/action.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/build-artifact-linux.yml b/.github/workflows/build-artifact-linux.yml index 07ac191..81b7d6f 100644 --- a/.github/workflows/build-artifact-linux.yml +++ b/.github/workflows/build-artifact-linux.yml @@ -46,11 +46,11 @@ jobs: - name: Headless Editor and Templates cache-name: server platform: server - editor-name: godot.x11.opt.tools.64 + editor-name: godot_server.x11.opt.tools.64 editor-name-new: godotsteam_server.headless.${{ inputs.godot_version }}.editor.linux.64 - debug-name: godot.x11.opt.debug.64 + debug-name: godot_server.x11.opt.debug.64 debug-name-new: godotsteam_server.headless.${{ inputs.godot_version }}.debug.template.linux.64 - release-name: godot.x11.opt.64 + release-name: godot_server.x11.opt.64 release-name-new: godotsteam_server.headless.${{ inputs.godot_version }}.template.linux.64