Added a CI for Project Teddy
Some checks failed
godot-ci export / Windows Export (push) Failing after 2m42s
godot-ci export / Linux Export (push) Failing after 2m40s

This commit is contained in:
Paul Black 2024-06-09 01:37:58 -06:00
parent 360c165ecc
commit a9bf3b0cfb

View file

@ -0,0 +1,66 @@
name: "godot-ci export"
on: push
env:
GODOT_VERSION: 4.2.2
EXPORT_NAME: project_teddy
PROJECT_PATH: project_teddy
jobs:
export-windows:
name: Windows Export
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
cd ~/.local/share/godot/export_templates/
wget https://techwizz-emu.com/downloads/godot-export-templates/4.2.2.stable.tar.xz
tar xf 4.2.2.stable.tar.xz
wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip
unzip Godot_v4.2.2-stable_linux.x86_64.zip
mv Godot_v4.2.2-stable_linux.x86_64 /usr/bin/godot
- name: Windows Build
run: |
cd /workspace/$PROJECT_PATH/
mkdir -v -p build/windows
cd $PROJECT_PATH
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: windows
path: /workspace/project_teddy/build/windows
export-linux:
name: Linux Export
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
cd ~/.local/share/godot/export_templates/
wget https://techwizz-emu.com/downloads/godot-export-templates/4.2.2.stable.tar.xz
tar xf 4.2.2.stable.tar.xz
wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip
unzip Godot_v4.2.2-stable_linux.x86_64.zip
mv Godot_v4.2.2-stable_linux.x86_64 /usr/bin/godot
- name: Linux Build
run: |
cd /workspace/$PROJECT_PATH/
mkdir -v -p build/linux
cd $PROJECT_PATH
godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux
path: /workspace/project_teddy/build/linux