@@ -15,32 +15,32 @@ jobs:
1515 steps :
1616 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1717 - name : " checkout"
18- uses : actions/checkout@v2
18+ uses : actions/checkout@v3
1919 - name : Set up JDK 11
2020 uses : actions/setup-java@v2
2121 with :
2222 java-version : ' 11'
2323 distribution : ' adopt'
24+ - name : " Setup Gradle"
25+ uses : gradle/gradle-build-action@v2
26+ with :
27+ # Don't reuse cache entries from any other Job.
28+ gradle-home-cache-strict-match : true
29+
30+ # Limit the size of the cache entry.
31+ # These directories contain instrumented/transformed dependency jars which can be reconstructed relatively quickly.
32+ gradle-home-cache-excludes : |
33+ caches/jars-9
34+ caches/transforms-3
2435 # always test before dist
25- - uses : eskatos/gradle-command-action@v1
26- name : Build and Test
27- with :
28- build-root-directory : AndroidXCI
29- wrapper-directory : AndroidXCI
30- wrapper-cache-enabled : true
31- dependencies-cache-enabled : true
32- configuration-cache-enabled : true
33- arguments : check :ftlModelBuilder:check
34- # build distribution
35- - uses : eskatos/gradle-command-action@v1
36- name : Build Distribution
37- with :
38- build-root-directory : AndroidXCI
39- wrapper-directory : AndroidXCI
40- wrapper-cache-enabled : true
41- dependencies-cache-enabled : true
42- configuration-cache-enabled : true
43- arguments : :cli:installDist
36+ - name : " Build and Test"
37+ working-directory : AndroidXCI
38+ shell : bash
39+ run : ./gradlew check :ftlModelBuilder:check --no-configuration-cache
40+ - name : " Distribute"
41+ working-directory : AndroidXCI
42+ shell : bash
43+ run : ./gradlew :cli:installDist --no-configuration-cache
4444 # push it to a new git tag
4545 - name : " create dist branch"
4646 id : event-args
0 commit comments