Added a CI for Project Teddy
This commit is contained in:
parent
360c165ecc
commit
a9bf3b0cfb
1 changed files with 66 additions and 0 deletions
66
.forgejo/workflows/godot.yaml
Normal file
66
.forgejo/workflows/godot.yaml
Normal 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
|
Loading…
Reference in a new issue