-
-
Notifications
You must be signed in to change notification settings - Fork 21
59 lines (47 loc) · 1.63 KB
/
build_apk.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
name: Android Build APK
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
- name: Add toolchain
run: rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g codecov
- run: yarn
- name: Setup Gradle
env:
SIGNINGKEY: ${{ secrets.SIGNINGKEY }}
KEYALIAS: ${{ secrets.ALIAS }}
STOREPASSWORD: ${{ secrets.STOREPASSWORD }}
KEYPASSWORD: ${{ secrets.KEYPASSWORD }}
COMPILATION_NUMBER: ${{ github.run_id }}
run: cd android && chmod +x ./gradlew && chmod +x ./keystore.sh && echo ${SIGNINGKEY} | base64 --decode >> my-upload-key.keystore && mv my-upload-key.keystore app/ && ./keystore.sh
# Build Command
- name: Build Android Release
run: yarn release
- uses: eine/tip@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: 'nightly'
files: |
android/app/build/outputs/apk/release/app-release.apk