„.gitea/workflows/build.yml“ ändern
Some checks failed
Export Game Job

This commit is contained in:
Snoweuph 2023-04-05 07:30:50 +00:00
parent f03336cde7
commit c7e9a9f1cd

View file

@ -14,19 +14,21 @@ jobs:
apt update -y && apt upgrade -y
apt install -y wine64 nodejs p7zip-full ca-certificates tree
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: export game
id: export
uses: https://github.com/firebelley/godot-export@v5.0.0
timeout-minutes: 30
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz
relative_project_path: ./
use_preset_export_path: false
relative_export_path: ./builds # move export output to this directory relative to git root
archive_output: false
verbose: false
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
- name: setup godot build libs
run: |
wget -nv https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip -O /root/.local/share/godot/godot.zip
wget -nv https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz -O /root/.local/share/godot/godot_templates.tpz
7z x /root/.local/share/godot/godot.zip -o/root/.local/share/godot/godot_executable -y
chmod +x /root/.local/share/godot/godot_executable/Godot_v4.0-stable_linux.x86_64
unzip /root/.local/share/godot/godot_templates.tpz -d /root/.local/share/godot
mv /root/.local/share/godot/templates /root/.local/share/godot/4.0.stable
mv /root/.local/share/godot/4.0.stable /root/.local/share/godot/export_templates
/root/.local/share/godot/godot_executable/Godot_v4.0-stable_linux.x86_64 --version
pwd
- name: setup Build Folders
run: mkdir -p ./builds/linux
- name: export for linux
run: /root/.local/share/godot/godot_executable/Godot_v4.0-stable_linux.x86_64 /var/lib/actions/project.godot --headless --export-release Linux/X11 ./builds/linux
- name: print info
run: |
ls