-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (58 loc) · 1.86 KB
/
build.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
66
67
68
69
70
71
name: Build Android Application
on:
push:
permissions: write-all
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Setup NodeJS
uses: actions/setup-node@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
- name: Load Key
run: |
base64 -d <<< "$STORE_FILE" > $RUNNER_TEMP/keystore.jks
echo "$RUNNER_TEMP/keystore.jks" > keystore.properties
env:
STORE_FILE: ${{ secrets.STORE_FILE }}
- name: Build loader
id: ver
shell: pwsh
run: ./loader.ps1
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: bin
path: ./app/src/main/jniLibs
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: build
env:
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Upload apk artifact
uses: actions/upload-artifact@v4
with:
name: app.apk
path: ./app/build/outputs/apk/release/app-release.apk
- name: Upload to GH Releases
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.ver.outputs.tag }}
generate_release_notes: true
body: |
# Lead Adroid ${{ steps.ver.outputs.tag }}
This is an auto generated build of Lead Adroid. You can download the latest version from the [official page](https://leadlang.github.io).
files: |
./app/build/outputs/apk/release/app-release.apk
./version