Skip to content

Commit

Permalink
Fix GA/EA action (#766)
Browse files Browse the repository at this point in the history
Also add maven cache

---------

Signed-off-by: Josiah Noel <[email protected]>
  • Loading branch information
SentryMan authored Dec 16, 2024
1 parent a5bd97e commit 74075b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build-EA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
os-name: [ubuntu-latest]
java-version:
- GA # Latest GA JDK
- EA # Current Mainline
# - EA # Current Mainline (lombok doesn't yet support)
include:
- os-name: macos-latest
java-version: GA
Expand All @@ -41,8 +41,17 @@ jobs:
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java_version }}

release: ${{ matrix.java-version }}

- name: Maven cache
uses: actions/cache@v4
env:
cache-name: maven-cache
with:
path:
~/.m2
key: build-${{ env.cache-name }}

- name: Compile and run tests
shell: bash
run: ./mvnw -B -U clean verify
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ jobs:
- 11 # LTS
- 17 # LTS
- 21 # LTS
include:
- os-name: macos-latest
java-version: 23
- os-name: windows-latest
java-version: 23

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -45,6 +39,15 @@ jobs:
distribution: zulu
java-version: ${{ matrix.java-version }}

- name: Maven cache
uses: actions/cache@v4
env:
cache-name: maven-cache
with:
path:
~/.m2
key: build-${{ env.cache-name }}

- name: Compile and run tests
shell: bash
run: ./mvnw -B -U clean verify
Expand Down

0 comments on commit 74075b6

Please sign in to comment.