-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (34 loc) · 966 Bytes
/
pr.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
name: Pull Request
on:
workflow_dispatch:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx6G -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 -XX:+UseParallelGC"'
GRADLE_FLAGS: '-q --stacktrace --no-configuration-cache'
JAVA_OPTS: '-Xms512m -Xmx4G'
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- name: Setup Gradle
uses: gradle/[email protected]
- name: Setup Android SDK
uses: amyu/setup-android@v2
with:
sdk-version: 32
build-tools-version: 33.0.1
- name: Clone Repository
uses: actions/checkout@v3
- name: Build app and tests
run: ./gradlew build