-
Notifications
You must be signed in to change notification settings - Fork 58
42 lines (36 loc) · 1.09 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
jobs:
verify:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
android-gradle-plugin: [8.2.0, 8.3.0]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Publish plugin to local Maven repository
run: ./gradlew publishToMavenLocal -PwithoutSample --no-daemon --stacktrace
- name: Run checks
env:
ANDROID_GRADLE_PLUGIN_VERSION: ${{ matrix.android-gradle-plugin }}
run: ./gradlew check --no-daemon --stacktrace "-Dorg.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=2048m"
- name: Archive sample HTML report
uses: actions/upload-artifact@v4
with:
name: report_${{ matrix.os }}_${{ matrix.android-gradle-plugin }}
path: sample/app/build/reports/ruler/release/report.html
retention-days: 7