Skip to content

Commit

Permalink
use gradle-build-action instead of setup-java's cache
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Oct 18, 2023
1 parent d1c13f1 commit 9d860e1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
cache: 'gradle'
- name: Setup Gradle
uses: gradle/[email protected]

- name: "build using jdk ${{ matrix.java_version }}"
run: ./gradlew build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
cache: 'gradle'
- name: Setup Gradle
uses: gradle/[email protected]

- name: "build using jdk ${{ matrix.java_version }}"
run: ./gradlew build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-generated-committed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
cache: 'gradle'

- name: Setup Gradle
uses: gradle/[email protected]
- name: check generateLogic committed
run: ./gradle/scripts/check-generateLogic-committed.sh
shell: bash
4 changes: 3 additions & 1 deletion .github/workflows/generate-readme-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
with:
distribution: 'adopt'
java-version: 11
cache: 'gradle'
- name: Setup Gradle
uses: gradle/[email protected]

- name: Generate readme
run: ./gradlew :readme-examples:build
- name: Create Pull Request
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/samples-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
cache: 'gradle'

- name: Setup Gradle
uses: gradle/[email protected]

- name: Cache maven dependencies
uses: actions/cache@v3
Expand Down

0 comments on commit 9d860e1

Please sign in to comment.