-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (41 loc) · 1.73 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Automatic builds
on:
push:
pull_request:
jobs:
game_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Godot and Export Templates
run: |
wget -q https://downloads.tuxfamily.org/godotengine/3.5.3/Godot_v3.5.3-stable_linux_headless.64.zip
wget -q https://downloads.tuxfamily.org/godotengine/3.5.3/Godot_v3.5.3-stable_export_templates.tpz
unzip -q Godot_v3.5.3-stable_linux_headless.64.zip
unzip -q Godot_v3.5.3-stable_export_templates.tpz
mkdir -p ~/.local/share/godot/templates/3.5.3.stable/
mv templates/* ~/.local/share/godot/templates/3.5.3.stable/
chmod +x Godot_v3.5.3-stable_linux_headless.64
- name: Prepare Directories
run: |
# Cleanup previous exports
rm -rf ./bin/*
# Prepare directories for game exports
mkdir -p ./bin/ExportLinux/UnearthLinux/ ./bin/ExportWindows/Unearth/
- name: Export Godot Game (Linux)
run: ./Godot_v3.5.3-stable_linux_headless.64 --export "Linux/X11" ./bin/ExportLinux/UnearthLinux/Unearth.x86_64
- name: Export Godot Game (Windows)
run: ./Godot_v3.5.3-stable_linux_headless.64 --export "Windows Desktop" ./bin/ExportWindows/Unearth/Unearth.exe
- name: Replace Icon in Windows Export
run: ./Godot_v3.5.3-stable_linux_headless.64 -s Art/ReplaceIcon.gd Art/UnearthIcon.ico ./bin/ExportWindows/Unearth/Unearth.exe
- name: Upload Linux Artifacts
uses: actions/upload-artifact@v3
with:
name: UnearthLinux
path: ./bin/ExportLinux/
- name: Upload Windows Artifacts
uses: actions/upload-artifact@v3
with:
name: UnearthWindows
path: ./bin/ExportWindows/