update github workflows

This commit is contained in:
hengyunabc 2022-08-25 15:09:34 +08:00
parent 1d9908752f
commit 586e953e6c
3 changed files with 16 additions and 9 deletions

View File

@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'

View File

@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- name: Build with Maven

View File

@ -7,13 +7,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 9, 10, 11 ]
java: [8, 11]
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Build with Maven
run: mvn clean package -P full
@ -21,22 +23,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [12, 13, 14 ]
# https://static.azul.com/zulu/bin/
java: [12, 13, 14 , 17, 18, '19.0.0-ea.33']
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
cache: 'maven'
- name: save java8 home
run: |
export JAVA8_HOME=$JAVA_HOME && echo $JAVA8_HOME
echo "export JAVA8_HOME=$JAVA_HOME" > ~/.testenv
- name: Setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Build with Maven
run: |
source ~/.testenv