-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (59 loc) · 2.14 KB
/
android_builds.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
63
64
65
name: 🤖 Android (VR and Mobile)
on:
workflow_call:
concurrency:
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-android
cancel-in-progress: true
jobs:
build:
name: Build VR and Mobile
runs-on: bigrunner
container:
# image generated at: https://github.com/decentraland/godot-docker-builder
image: quay.io/decentraland/dcl-godot-android-builder:02ee2c576f49c1397710a6b90098549725bad4a5
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: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.77.2
override: true
components: clippy, rustfmt
- name: Set up cache
uses: ./.github/actions/set-up-cache
- 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/