-
Notifications
You must be signed in to change notification settings - Fork 24
80 lines (67 loc) · 2.23 KB
/
nightlies.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
72
73
74
75
76
77
78
79
80
name: Make Nightly
permissions:
contents: write
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
cache: 'gradle'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assemblePreview
- name: Sign apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/preview
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
- name: Copy build artifacts
run: |
set -e
commit_count=$(git rev-list --count HEAD)
echo "COMMIT_COUNT=$commit_count" >> $GITHUB_ENV
declare -a apks=("universal" "arm64-v8a" "armeabi-v7a" "x86" "x86_64")
printf "%s\n" "${apks[@]}" | xargs -n 1 -I {} sh -c '
cp app/build/outputs/apk/preview/app-{}-preview-signed.apk mpvKt-{}.apk'
- name: Upload the universal artifact
uses: actions/upload-artifact@v4
with:
path: ./mpvKt-universal*
name: universal-r${{ env.COMMIT_COUNT }}
- name: Upload the arm64-v8a artifact
uses: actions/upload-artifact@v4
with:
path: ./mpvKt-arm64-v8a*
name: arm64-v8a-r${{ env.COMMIT_COUNT }}
- name: Upload the armeabi-v7a artifact
uses: actions/upload-artifact@v4
with:
path: ./mpvKt-armeabi-v7a*
name: armeabi-v7a-r${{ env.COMMIT_COUNT }}
- name: Upload the x86 artifact
uses: actions/upload-artifact@v4
with:
path: ./mpvKt-x86*
name: x86-r${{ env.COMMIT_COUNT }}
- name: Upload the x86_64 artifact
uses: actions/upload-artifact@v4
with:
path: ./mpvKt-x86_64*
name: x86_64-r${{ env.COMMIT_COUNT }}