Skip to content

Commit 772813c

Browse files
authored
update gradle build action (#68)
1 parent a150f4c commit 772813c

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Set up JDK 11
1717
uses: actions/setup-java@v2
1818
with:
1919
java-version: '11'
2020
distribution: 'adopt'
21-
- name: "Build and Test"
21+
- name: "Setup Gradle"
2222
uses: gradle/gradle-build-action@v2
2323
with:
2424
# Don't reuse cache entries from any other Job.
@@ -29,10 +29,10 @@ jobs:
2929
gradle-home-cache-excludes: |
3030
caches/jars-9
3131
caches/transforms-3
32-
# disable configuration cache due to
33-
# https://github.com/gradle/gradle/issues/21088
34-
arguments: check :ftlModelBuilder:check publish --stacktrace --no-configuration-cache
35-
build-root-directory: AndroidXCI
32+
- name: "Build and Test"
33+
working-directory: AndroidXCI
34+
shell: bash
35+
run: ./gradlew check :ftlModelBuilder:check publish --stacktrace --no-configuration-cache
3636
- name: "Upload build repository"
3737
continue-on-error: true
3838
uses: actions/upload-artifact@v2

.github/workflows/dist.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)