Skip to content

Commit

Permalink
Use more setup-gradle for caching purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsantos committed Jul 22, 2024
1 parent 2d2154a commit f2ca26f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: checkout
uses: actions/checkout@v4

- name: Gradle cache
uses: gradle/actions/setup-gradle@v3

- name: Build `StableFullRelease` and `StableFdroidRelease` variants
run: ./gradlew build${{ matrix.version }} && ./gradlew clean

Expand All @@ -51,11 +53,13 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: checkout
uses: actions/checkout@v4

- name: Gradle cache
uses: gradle/actions/setup-gradle@v3

- name: Run unit tests
run: ./gradlew testOoniStableFullRelease

Expand All @@ -82,7 +86,6 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -184,7 +187,9 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Gradle cache
uses: gradle/actions/setup-gradle@v3

- name: Assemble APKs
if: success() && steps.get_issue_number.outputs.result
Expand Down

0 comments on commit f2ca26f

Please sign in to comment.