You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2022/07/01 09:40:24 UTC

[rocketmq-clients] 01/01: Java: use matrix to trigger CI

This is an automated email from the ASF dual-hosted git repository.

aaronai pushed a commit to branch java
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git

commit 43c4a28def1c62f53bd50660c91050b80f31980b
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Fri Jul 1 17:37:07 2022 +0800

    Java: use matrix to trigger CI
---
 .github/workflows/java_build.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/java_build.yml b/.github/workflows/java_build.yml
index 4b8b2be..f71fd41 100644
--- a/.github/workflows/java_build.yml
+++ b/.github/workflows/java_build.yml
@@ -2,15 +2,18 @@ name: Java Build
 on: [push, pull_request]
 jobs:
   java_ubuntu_18_04:
-    name: Ubuntu 18.04
+    name: "Ubuntu 18.04 (JDK: ${{ matrix.jdk }})"
     runs-on: ubuntu-18.04
+    strategy:
+      matrix:
+        jdk: [11, 17]
     steps:
     - name: Checkout
       uses: actions/checkout@v2
-    - name: Set up JDK 11
+    - name: Set up JDK ${{ matrix.jdk }}
       uses: actions/setup-java@v2
       with:
-        java-version: '11'
+        java-version: ${{ matrix.jdk }}
         distribution: 'adopt'
         cache: maven
     - name: Build with Maven