Skip to content

Commit 18e283d

Browse files
committed
Add linux arm64 template build step
1 parent 34fcdfc commit 18e283d

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/godot-templates-build.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,59 @@ jobs:
9090
with:
9191
name: windows-templates
9292
path: export_templates_windows.zip
93+
build_linux_aarch64_template:
94+
runs-on: ubuntu-24.04-arm
95+
env:
96+
GODOT_VERSION: 4.5.1
97+
GODOT_SUB: stable
98+
GODOT_DOWNLOAD_DIR: https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-${GODOT_SUB}
99+
SCONSFLAGS: verbose=yes warnings=all use_lto=yes arch=arm64
100+
101+
steps:
102+
- name: Checkout current repo
103+
uses: actions/checkout@v4
104+
with:
105+
path: material-maker
106+
107+
- name: Clone latest stable Godot source into ./godot
108+
run: |
109+
git clone --depth 1 --branch ${GODOT_VERSION}-${GODOT_SUB} https://github.com/godotengine/godot.git godot
110+
cd godot
111+
patch -p1 < ../material-maker/material_maker/misc/mm.patch
112+
113+
- name: Install dependencies
114+
run: |
115+
sudo apt-get update
116+
sudo apt-get update
117+
sudo apt-get install -y \
118+
build-essential scons pkg-config libx11-dev libxcursor-dev \
119+
libxinerama-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev \
120+
libpulse-dev libudev-dev libxi-dev libxrandr-dev libwayland-dev \
121+
122+
- name: Cache SCons build artifacts
123+
uses: actions/cache@v3
124+
with:
125+
path: |
126+
godot/.sconsign.dblite
127+
godot/bin/
128+
key: ${{ runner.os }}-godot-${{ hashFiles('godot/**/*.cpp', 'godot/**/*.h', 'godot/SConstruct', 'godot/SCsub') }}
129+
restore-keys: |
130+
${{ runner.os }}-godot-
131+
132+
- name: Build export templates (Linux arm64)
133+
run: |
134+
cd godot
135+
scons platform=linuxbsd target=template_release tools=no
136+
cd ..
137+
138+
- name: Package Linux(arm64) build
139+
run: |
140+
mkdir -p templates_linux_arm64
141+
cp godot/bin/*linuxbsd* templates_linux_arm64/
142+
(cd templates_linux_arm64 && zip -9 -r ../export_templates_linux_arm64.zip .)
143+
144+
- name: Upload Linux(arm64) artifact
145+
uses: actions/upload-artifact@v4
146+
with:
147+
name: linux-arm64-templates
148+
path: export_templates_linux_arm64.zip

0 commit comments

Comments
 (0)