2021-04-22 17:17:02 +01:00
|
|
|
name: "Assemble"
|
|
|
|
|
|
|
|
on:
|
2022-12-16 14:13:55 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
2022-12-16 11:24:03 +00:00
|
|
|
|
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
2021-04-22 17:17:02 +01:00
|
|
|
|
2023-06-08 12:58:40 +01:00
|
|
|
concurrency:
|
|
|
|
group: assemble-flavors-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-04-22 17:17:02 +01:00
|
|
|
jobs:
|
2022-12-16 14:13:55 +00:00
|
|
|
flavor:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
flavor: [ Generic, Gplay ]
|
|
|
|
steps:
|
2023-10-24 00:18:32 +01:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-04-25 20:11:24 +01:00
|
|
|
- name: set up JDK 17
|
2023-12-04 23:11:39 +00:00
|
|
|
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
2022-12-16 14:13:55 +00:00
|
|
|
with:
|
|
|
|
distribution: "temurin"
|
2023-04-14 18:20:30 +01:00
|
|
|
java-version: 17
|
2022-12-16 14:13:55 +00:00
|
|
|
- name: Build ${{ matrix.flavor }}
|
|
|
|
run: |
|
|
|
|
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties
|
|
|
|
./gradlew assemble${{ matrix.flavor }}
|
|
|
|
- name: Archive apk
|
2023-12-18 23:31:00 +00:00
|
|
|
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
|
2022-12-16 14:13:55 +00:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
2023-12-20 10:20:55 +00:00
|
|
|
name: Nextcloud-${{ matrix.flavor }}-APK
|
2022-12-16 14:13:55 +00:00
|
|
|
path: app/build/outputs/apk/**/**/*.apk
|
|
|
|
retention-days: 5
|