-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 1.81 KB
/
android.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
name: Android Release Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
BUILD_PATH: ./android/app/build/outputs/apk/release
BUILD_TYPE: release
BUILD_PLATFORM: android
permissions:
security-events: write
actions: read
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 360
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
arch: [x64, x86]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
- name: Setup Java JDK
uses: actions/setup-java@v3.13.0
with:
distribution: 'adopt'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Build Application
run: |
sudo apt-get update -y
sudo apt-get install -y cmake
cd ./android
chmod +x ./gradlew
./gradlew assembleRelease
# - name: Sign Application
# run: |
# keytool -genkey -v -keystore release-key.keystore -alias wispy -keyalg RSA -keysize 2048 -validity 10000 -storepass ${{ secrets.KEYSTORE_PASSWORD }} -keypass ${{ secrets.KEY_PASSWORD }} -dname "CN=julesgrc0, OU=Engineering, O=Wispy, L=France, S=France, C=FR"
# ${ANDROID_HOME}/build-tools/31.0.0/apksigner sign --ks release-key.keystore --ks-key-alias wispy --ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} --key-pass pass:${{ secrets.KEY_PASSWORD }} --out ${{env.BUILD_PATH}}signed-app-release.apk ${{env.BUILD_PATH}}app-release.apk
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: wipsy-${{env.BUILD_PLATFORM}}-${{matrix.arch}}.apk
path: ${{env.BUILD_PATH}}/app-release.apk