2021-04-22 19:17:02 +03:00
|
|
|
name: "Assemble"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
flavor:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
flavor: [ Generic, Gplay ]
|
|
|
|
steps:
|
2022-03-08 02:22:35 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-18 17:40:00 +03:00
|
|
|
- name: set up JDK 11
|
2022-03-01 02:14:47 +03:00
|
|
|
uses: actions/setup-java@v3
|
2021-04-22 19:17:02 +03:00
|
|
|
with:
|
2022-02-11 19:56:33 +03:00
|
|
|
distribution: "temurin"
|
2022-05-18 17:40:00 +03:00
|
|
|
java-version: 11
|
2021-04-22 19:17:02 +03:00
|
|
|
- name: Build ${{ matrix.flavor }}
|
|
|
|
run: |
|
|
|
|
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties
|
|
|
|
./gradlew assemble${{ matrix.flavor }}
|
2021-04-22 22:00:12 +03:00
|
|
|
- name: Archive apk
|
2022-04-12 02:42:20 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-04-22 22:00:12 +03:00
|
|
|
if: ${{ always() }}
|
|
|
|
with:
|
|
|
|
name: Nextcloud-APK
|
|
|
|
path: app/build/outputs/apk/**/**/*.apk
|
|
|
|
retention-days: 5
|