-
-
Notifications
You must be signed in to change notification settings - Fork 268
44 lines (36 loc) · 1.13 KB
/
pull_request.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
44
name: Pull Request
on: pull_request
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
if: ${{ !startsWith(github.event.head_commit.message, 'docs:') }}
steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Write properties
run: |
echo buildWithGitSuffix=true >> local.properties
- name: Gradle prebuild
run: |
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
./gradlew prebuild
- name: Build debug
id: buildDebug
run: |
./gradlew :app:assembleDebug
echo "debugName=$(ls app/build/apk/debug/HMA*-debug.apk | awk -F '(/|.apk)' '{print $6}')" >> $GITHUB_OUTPUT