-
Notifications
You must be signed in to change notification settings - Fork 30
58 lines (46 loc) · 1.69 KB
/
android_ci.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
name: Android Build CI
on:
push:
branches: [master]
paths-ignore:
- 'landing/**'
- 'web/**'
- 'docs/**'
- 'keyserver/**'
- 'desktop/**'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: rustup target add aarch64-linux-android arm-linux-androideabi i686-linux-android x86_64-linux-android
run: rustup target add aarch64-linux-android arm-linux-androideabi i686-linux-android x86_64-linux-android
- name: Install Protobuf compiler
working-directory: ./scripts
run: sudo ./install_protobuf.sh
- name: Install Yarn
run: npm install -g yarn
- name: yarn ci-cleaninstall
run: yarn ci-cleaninstall
- name: Save ANDROID_KEY_STORE_B64 to file
env:
ANDROID_KEY_STORE_B64: ${{secrets.ANDROID_KEY_STORE_B64}}
run: echo "$ANDROID_KEY_STORE_B64" > ANDROID_KEY_STORE_B64.b64
- name: Save ANDROID_KEY_STORE to file
run: base64 -d ANDROID_KEY_STORE_B64.b64 > android_key_store.keystore
- name: Configure gradle.properties
run: |
mkdir ~/.gradle
touch ~/.gradle/gradle.properties
echo "COMM_UPLOAD_STORE_FILE=$(pwd)/android_key_store.keystore" >> ~/.gradle/gradle.properties
echo "COMM_UPLOAD_KEY_ALIAS=AndroidSigningKey" >> ~/.gradle/gradle.properties
- name: Build with Gradle
working-directory: ./native/android
env:
ANDROID_SIGNING_PASSWORD: ${{secrets.ANDROID_SIGNING_PASSWORD}}
run: ./gradlew bundleRelease