-
-
Notifications
You must be signed in to change notification settings - Fork 315
43 lines (36 loc) · 1.01 KB
/
build.yml
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
name: Build App
on:
push:
branches-ignore:
- l10n_main
- dependabot/*
pull_request:
branches-ignore:
- l10n_main
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
flavor: [FullBeta, FullStable, FossBeta, FossStable]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
cache: gradle
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2.1.2
- name: Configure Gradle
run: |
mkdir -p ~/.gradle/
echo -e "org.gradle.jvmargs=-Xmx8192M\nmapsApiKey=AIzaSyA2t2893e9wccs9EnlnauJRgtqFNYQSp-o\norg.gradle.daemon=false" >> ~/.gradle/gradle.properties
- name: Build
run: ./gradlew :mobile:assemble${{ matrix.flavor }}
- name: Unit Tests
run: ./gradlew :mobile:test${{ matrix.flavor }}ReleaseUnitTest