-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (51 loc) · 1.62 KB
/
example_apps_android.yaml
File metadata and controls
54 lines (51 loc) · 1.62 KB
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
name: Build Android example apps
on:
workflow_dispatch:
inputs:
sha:
description: '[Optional] Commit SHA1, branch or tag to build. The latest SHA1 on a given branch is used if no value is provided.'
required: false
type: string
workflow_call:
inputs:
sha:
description: '[Optional] Commit SHA1, branch or tag to build. The latest SHA1 on a given branch is used if no value is provided.'
required: false
type: string
jobs:
print_arguments:
name: Print arguments
runs-on: ubuntu-latest
steps:
- name: Print entered "sha"
run: echo "$SHA"
env:
SHA: ${{ inputs.sha }}
build:
name: Build & upload
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Install JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: gradle
- name: Setup Android cmd line tools + NDK
uses: ./.github/actions/common-android-setup
- name: Accept Android SDK licenses
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
- name: Install Rust target
run: rustup update && rustup target add aarch64-linux-android && rustup target add x86_64-linux-android
- name: Build Android example app
run: ./ci/prepare_example_apps_android.sh
env:
SKIP_PROTO_GEN: 1
- name: Upload Android example apps
uses: actions/upload-artifact@v4
with:
name: Android Example Apps
path: ./dist/example-apps.android.zip
if-no-files-found: error