~thestr4ng3r/chiaki

ref: 796a12845684afe5c4b194d4111bcdcf5b04aca2 chiaki/.builds/android.yml -rw-r--r-- 811 bytes
796a1284Florian Märkl Fix fec.c extension 9 months ago
                                                                                
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
image: alpine/latest

packages:
- docker

sources:
- https://git.sr.ht/~thestr4ng3r/chiaki

artifacts:
- Chiaki.apk
- Chiaki.aab

secrets:
- 163950ff-2ac4-423d-a280-d2d9edbef000
- f4bce41f-f96b-4633-80d8-0ff5dd74dc2a

tasks:
- build: |
    cp -v ~/chiaki-local.properties chiaki/android/local.properties || echo "Secrets not available"
    sudo service docker start
    timeout 15 sh -c "until sudo docker info; do sleep 0.5; done"
    sudo docker run \
      -v /home/build:/home/build \
      -u $(id -u):$(id -g) \
      thestr4ng3r/android:f064ea6 \
      /bin/bash -c "cd /home/build/chiaki/android && ./gradlew assembleRelease bundleRelease"
    cp chiaki/android/app/build/outputs/apk/release/app-release*.apk Chiaki.apk
    cp chiaki/android/app/build/outputs/bundle/release/app-release*.aab Chiaki.aab