-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (59 loc) · 2.49 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (59 loc) · 2.49 KB
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
name: Build Release APKs
on:
workflow_dispatch:
push:
tags: [ "v*" ]
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4096m
CI_GRADLE_ARG_PROPERTIES: "--stacktrace"
permissions: {}
jobs:
build:
name: Build Release APKs
runs-on: ubuntu-latest
concurrency:
group: ${{ format('release-{0}', github.ref) }}
cancel-in-progress: true
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: true
# All of these default to true, but we should only need the 'android' one (and maybe swap-storage?)
android: false
dotnet: true
haskell: true
# This takes way too long to run (~2 minutes) and it saves only ~5.5GB
large-packages: false
docker-images: true
swap-storage: false
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Configure JDK
uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0
with:
distribution: 'temurin'
java-version: '21'
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
- name: Export AboutLibraries library definitions
run: ./gradlew :android-app:exportLibraryDefinitions --dependency-verification lenient --continue $CI_GRADLE_ARG_PROPERTIES
- name: Assemble release APKs
run: ./gradlew :android-app:assembleRelease $CI_GRADLE_ARG_PROPERTIES
- name: Upload release APKs
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: projectkafka-release-apk
path: |
android-app/build/outputs/apk/release/*-release-unsigned.apk
- name: Assemble release AAB
run: ./gradlew :android-app:bundleRelease $CI_GRADLE_ARG_PROPERTIES
- name: Upload release AAB
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: projectkafka-release-aab
path: |
android-app/build/outputs/bundle/release/*-release.aab