~thestr4ng3r/chiaki

ref: aa3a3b8bbcfd1c45a0b10ec6d6d2aa4e3d8bb131 chiaki/.builds/android.yml -rw-r--r-- 811 bytes
aa3a3b8bFlorian Märkl Update Windows Dependencies in CI 4 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