-
Notifications
You must be signed in to change notification settings - Fork 122
35 lines (27 loc) · 865 Bytes
/
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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: JDK ${{ matrix.java_version }}, Config ${{ matrix.test_config_method }}
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [11, 17, 23]
test_config_method: ["DSL", "PROPERTIES", "BASE"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java_version }}
- name: Accept Android SDK license
run: yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" --licenses
- uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew build --stacktrace -DtestConfigMethod=${{ matrix.test_config_method }}