-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix rcedit and wine not working - Add comments - Cache Godot binaries - Run exports in parallel - Report error if no artifacts are uploaded - General overhaul
- Loading branch information
1 parent
eb8cb30
commit 5f0e622
Showing
3 changed files
with
113 additions
and
35 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,44 @@ | ||
name: Set up Godot | ||
inputs: | ||
version: | ||
required: true | ||
release: | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Make folders | ||
shell: bash | ||
run: | | ||
# Set up folders for Godot editor and export templates. | ||
# This is done before the download step because this uses caching and doesn't always need to download. | ||
# The ~/godot directory is for the editor, so it can be added to PATH. | ||
mkdir -v -p ~/.local/share/godot/export_templates/${{ inputs.version }}.${{ inputs.release }} | ||
mkdir -v -p ~/godot | ||
- name: Use cache | ||
id: godot-cache | ||
uses: | ||
actions/cache@v4 | ||
with: | ||
key: ${{ inputs.version }}-${{ inputs.release }} | ||
path: | | ||
~/.local/share/godot/export_templates/${{ inputs.version }}.${{ inputs.release }} | ||
~/godot | ||
- name: Download Godot | ||
if: ${{ steps.godot-cache.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
run: | | ||
# Download Godot editor and export templates from godot-builds repo. | ||
wget -q https://github.com/godotengine/godot-builds/releases/download/${{ inputs.version }}-${{ inputs.release }}/Godot_v${{ inputs.version }}-${{ inputs.release }}_export_templates.tpz & | ||
wget -q https://github.com/godotengine/godot-builds/releases/download/${{ inputs.version }}-${{ inputs.release }}/Godot_v${{ inputs.version }}-${{ inputs.release }}_linux.x86_64.zip & | ||
wait | ||
# Unpack the files. | ||
unzip Godot_v${{ inputs.version }}-${{ inputs.release }}_linux.x86_64.zip -d ~ & | ||
unzip Godot_v${{ inputs.version }}-${{ inputs.release }}_export_templates.tpz -d ~ & | ||
wait | ||
# Move to correct places. | ||
mv ~/templates/* ~/.local/share/godot/export_templates/${{ inputs.version }}.${{ inputs.release }} | ||
mv ~/Godot_v${{ inputs.version }}-${{ inputs.release }}_linux.x86_64 ~/godot/godot | ||
- name: Add Godot to path | ||
shell: bash | ||
run: echo "~/godot" >> $GITHUB_PATH |
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
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