Skip to content

Commit

Permalink
install java17 first
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu committed Feb 27, 2024
1 parent 05ec38e commit 2a1bf4b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ jobs:
run: |
sudo apt update
sudo apt install -y protobuf-compiler libssl-dev
- name: Install Java 11
- name: Install Java 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: 'maven'
java-version: 17
cache: "maven"
- run: echo "JAVA_17=$JAVA_HOME" >> $GITHUB_ENV
- name: Install Java 17
- name: Install Java 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: 'maven'
java-version: 11
cache: "maven"
- name: Java Style Check
run: mvn checkstyle:check
- name: Rust Clippy
Expand All @@ -64,5 +64,3 @@ jobs:
run: mvn test
- name: Running tests with Java 17
run: JAVA_HOME=$JAVA_17 JAVA_TOOL_OPTIONS="--add-opens=java.base/java.nio=ALL-UNNAMED" mvn test


0 comments on commit 2a1bf4b

Please sign in to comment.