Files
spacel/.gitea/workflows/build.yml
T
alpacaman 72095de5e2
/ build (push) Failing after 5s
test
2026-04-21 17:23:20 +02:00

39 lines
1.3 KiB
YAML

on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup export templates
run: |
mkdir -p ~/.local/share/godot/export_templates/
cp -r /root/.local/share/godot/export_templates/* ~/.local/share/godot/export_templates/ 2>/dev/null || \
find / -name "*.gdz" -o -name "version.txt" 2>/dev/null | head -5
ls /root/.local/share/godot/export_templates/ 2>/dev/null || echo "leer"
ls ~/.local/share/godot/export_templates/ 2>/dev/null || echo "leer"
- name: Get build number
run: echo "BUILD_NUM=$(git rev-list --count HEAD)" >> $GITHUB_ENV
- name: Prepare build dir
run: mkdir -p build
- name: Build Windows
run: godot --headless --export-release "Windows Desktop" build/spacel.exe
- name: Build Linux
run: godot --headless --export-release "Linux" build/spacel.x86_64
- name: Build Android
run: godot --headless --export-release "Android" build/spacel.apk
- name: Build Web
run: godot --headless --export-release "Web" build/spacel.html
- uses: actions/upload-artifact@v4
with:
name: build-${{ env.BUILD_NUM }}
path: build/