You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/06/24 19:39:39 UTC
[groovy] branch danielsun/jdk19 updated: Try sdkman
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch danielsun/jdk19
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/danielsun/jdk19 by this push:
new 1c2f1f2405 Try sdkman
1c2f1f2405 is described below
commit 1c2f1f2405f17453b7af292c4cd0883f3c9b8625
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jun 25 03:39:25 2022 +0800
Try sdkman
---
.github/workflows/groovy-build-test-ea.yml | 36 +++++++++++-------------------
1 file changed, 13 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/groovy-build-test-ea.yml b/.github/workflows/groovy-build-test-ea.yml
index f80dbe11c0..9841dc4938 100644
--- a/.github/workflows/groovy-build-test-ea.yml
+++ b/.github/workflows/groovy-build-test-ea.yml
@@ -18,33 +18,23 @@ name: Build and test ea
on: [push, pull_request]
jobs:
- test:
+ build:
+ name: "JDK ${{ matrix.version }} on ${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
- os: [ubuntu-18.04]
- jdk: [19.ea.28-open]
+ os: [ macos-latest, ubuntu-latest, windows-latest ]
+ version: [ 19.ea.28-open ]
runs-on: ${{ matrix.os }}
steps:
- - uses: sdkman/sdkman-action@master
- id: sdkman-install-jdk
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Setup Java ${{ matrix.version }}
+ uses: sdkman/sdkman-action@master
+ id: sdkman
with:
candidate: java
- version: ${{ matrix.jdk }}
- - uses: sdkman/sdkman-action@master
- id: sdkman-install-jdk17
- with:
- candidate: java
- version: 17.0.3.6.1-amzn
- - uses: actions/setup-java@v1
- id: setup-java
- with:
- java-version: 17
- jdkFile: ${{ steps.sdkman-install-jdk17.outputs.file }}
- - name: Unzip JDK archive
- run: unzip ${{ steps.sdkman-install-jdk.outputs.file }} -d /home/runner/openjdk
- - name: Test with Gradle
- run: ./gradlew test -Ptarget.java.home=/home/runner/openjdk
- timeout-minutes: 60
- env:
- GRADLE_SCANS_ACCEPT: yes
+ version: ${{ matrix.version }}
+ - name: Verify Java ${{ matrix.version }}
+ run: java -version
+