2021-02-23 22:23:16 +03:00
|
|
|
name: "Assemble"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
|
|
|
|
|
|
|
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:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-27 15:21:41 +03:00
|
|
|
- name: set up JDK 11
|
2021-05-13 08:42:43 +03:00
|
|
|
uses: actions/setup-java@v2
|
2021-02-23 22:23:16 +03:00
|
|
|
with:
|
2021-05-13 08:42:43 +03:00
|
|
|
distribution: "adopt"
|
2021-05-27 15:21:41 +03:00
|
|
|
java-version: 11
|
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 }}
|