-
-
Notifications
You must be signed in to change notification settings - Fork 26
63 lines (53 loc) · 2.36 KB
/
build_gozen_linux_debug.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
53
54
55
56
57
58
59
60
61
62
name: Linux Debug
run-name: Build GoZen Linux Debug
on:
workflow_dispatch:
env:
GODOT_VERSION: 4.3
jobs:
build-linux:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Set date variable
id: get-date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Installing dependencies
run: pacman -Syu --noconfirm pkgconf git bash yasm python python-pip scons gcc diffutils make wget unzip tar ffmpeg x264 x265 libwebp opus pulseaudio libvorbis libxml2
- name: Checkout submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare Godot
run: |
# Getting Godot
wget -q -O godot_linux.zip https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_linux.x86_64.zip
unzip godot_linux.zip
# Getting the export templates
wget -q -O godot_export_templates.tpz https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_export_templates.tpz
mkdir -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
unzip godot_export_templates.tpz -d ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
mv ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable/templates/* ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable/
# Changing the version number
sed -i "s/config\/version=\"[0-9-]\+-alpha\"/config\/version=\"${{ env.date }}-alpha\"/" src/project.godot
- name: Build GDE GoZen debug
working-directory: libs
run: |
# First build FFmpeg
./ffmpeg.sh 0
./ffmpeg.sh 1
scons -j4 target=template_debug platform=linux arch=x86_64 dev_build=yes
- name: Build GoZen
run: |
# Build Godot
mkdir bin
mkdir bin/linux
cp libs/bin/linux/* bin/linux
./Godot_v${GODOT_VERSION}-stable_linux.x86_64 --import src/project.godot --quiet --headless --export-debug Linux ../bin/linux/GoZen_${{ env.date }}_debug.x86_64
- name: Uploading build
uses: actions/upload-artifact@v4
with:
name: gozen_linux_${{ env.date }}
path: bin/
retention-days: 20