-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (36 loc) · 1.33 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
name: Test
on: [push, pull_request]
env:
# Allow precise monitoring of the save/restore of Gradle User Home by `gradle-build-action`
# See https://github.com/marketplace/actions/gradle-build-action?version=v2.1.1#cache-debugging-and-analysis
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: "Setup Gradle"
uses: gradle/gradle-build-action@v2
with:
# Don't reuse cache entries from any other Job.
gradle-home-cache-strict-match: true
# Limit the size of the cache entry.
# These directories contain instrumented/transformed dependency jars which can be reconstructed relatively quickly.
gradle-home-cache-excludes: |
caches/jars-9
caches/transforms-3
- name: "Build and Test"
working-directory: AndroidXCI
shell: bash
run: ./gradlew check :ftlModelBuilder:check publish --stacktrace --no-configuration-cache
- name: "Upload build repository"
continue-on-error: true
uses: actions/upload-artifact@v2
with:
name: repo
path: AndroidXCI/build/repo