immersive-home/.github/workflows/build-debug.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-20 13:32:42 +02:00
# Build the Android APK on push to the master branch
name: Build APK
on:
push:
branches:
- main
2023-11-20 13:35:22 +02:00
- testing
2023-11-20 13:32:42 +02:00
env:
2023-11-20 13:47:24 +02:00
GODOT_VERSION: 4.1.3
2023-11-20 13:32:42 +02:00
EXPORT_NAME: immersive-home
jobs:
build:
runs-on: ubuntu-20.04
container:
2023-11-20 13:47:24 +02:00
image: barichello/godot-ci:4.1.3
2023-11-20 13:32:42 +02:00
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
2023-11-20 14:58:05 +02:00
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/4.1.3.stable ~/.local/share/godot/templates/4.1.3.stable
2023-11-20 15:02:31 +02:00
ls -l ~/.local/share/godot/templates
2023-11-20 15:04:17 +02:00
ls -l ~/.local/share/godot/templates/4.1.3.stable
2023-11-20 13:32:42 +02:00
- name: Android Export
run: |
2023-11-20 14:27:25 +02:00
mkdir -v -p /build/android
2023-11-20 14:58:05 +02:00
godot -v --export-debug --debug-collisions --headless "Android" /build/android/immersive-home.apk
2023-11-20 14:27:25 +02:00
ls -l .
2023-11-20 14:39:05 +02:00
ls -l /build/android
2023-11-20 13:32:42 +02:00
- name: Upload APK
2023-11-20 14:27:25 +02:00
uses: actions/upload-artifact@v2
2023-11-20 13:32:42 +02:00
with:
2023-11-20 13:49:29 +02:00
name: immersive-home-debug
2023-11-20 14:27:25 +02:00
path: /build/android/immersive-home.apk