Skip to content

Quest & Android Builds #324

Quest & Android Builds

Quest & Android Builds #324

Workflow file for this run

on:
push:
branches:
- main
workflow_dispatch:
inputs:
branch:
description: 'Branch name'
required: true
default: 'main'
name: Quest & Android Builds
jobs:
build:
runs-on: bigrunner
container:
image: docker://kuruk/dcl-godot-android-builder:4.2
volumes:
- /home/user/.cache/devgodot:/github/home/.cache/devgodot
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'push' && github.ref || github.event.inputs.branch }}
- name: Install Android targets
run: |
echo $PATH
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.77.2
override: true
components: clippy, rustfmt
- name: Install Android targets
run: |
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
- name: Build
run: |
bash build-android-apk.sh
# if libdclgodot.so does not exist, the build failed, nothing to upload
- name: Copy Android Artifacts
if: success() || failure()
run: |
mkdir -p android-artifacts
cp godot/lib/android/arm64/libdclgodot.so android-artifacts/
mv android.apk android-artifacts/ || true
mv android-unsigned.aab android-artifacts/ || true
- name: Copy Meta Quest Artifacts
if: success() || failure()
run: |
mkdir -p meta-quest-artifacts
cp godot/lib/android/arm64/libdclgodot.so meta-quest-artifacts/
mv meta-quest.apk meta-quest-artifacts/ || true
mv meta-quest-unsigned.aab meta-quest-artifacts/ || true
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Android APK
path: android-artifacts/
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: Meta Quest APK
path: meta-quest-artifacts/