diff --git a/.github/workflows/build-vmtool.yaml b/.github/workflows/build-vmtool.yaml index 25e1a81cc..d4fe83a82 100644 --- a/.github/workflows/build-vmtool.yaml +++ b/.github/workflows/build-vmtool.yaml @@ -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' diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c91bbdd91..506eb005d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 194504551..bfc8f7ca0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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