2024-03-29 18:56:51 +03:00
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-02-23 22:23:16 +03:00
|
|
|
name: "Assemble"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
|
|
|
|
2022-06-10 09:03:43 +03:00
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
|
|
|
|
2023-06-08 14:53:06 +03:00
|
|
|
concurrency:
|
|
|
|
group: assemble-flavors-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-02-23 22:23:16 +03:00
|
|
|
jobs:
|
|
|
|
flavor:
|
2021-03-03 13:11:22 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-23 22:23:16 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-12-10 13:24:34 +03:00
|
|
|
flavor: [ Generic, Gplay, Huawei ]
|
2021-02-23 22:23:16 +03:00
|
|
|
steps:
|
2024-03-01 15:36:47 +03:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-05-08 19:35:05 +03:00
|
|
|
- name: set up JDK 17
|
2024-03-16 19:16:44 +03:00
|
|
|
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
|
2021-02-23 22:23:16 +03:00
|
|
|
with:
|
2022-01-20 12:37:32 +03:00
|
|
|
distribution: "temurin"
|
2023-05-08 19:35:05 +03:00
|
|
|
java-version: 17
|
2021-02-23 22:23:16 +03:00
|
|
|
- name: Build ${{ matrix.flavor }}
|
|
|
|
run: |
|
|
|
|
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" >> gradle.properties
|
|
|
|
./gradlew assemble${{ matrix.flavor }}
|