You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2021/11/02 06:55:51 UTC

[camel-k-runtime] 08/12: ci: switch to actions/setup-java@v2, use temurin distribution, build on java 17

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

lburgazzoli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit 5c51027a80a837192650e4c5b1d8130cb069f4e8
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Fri Oct 22 18:52:52 2021 +0200

    ci: switch to actions/setup-java@v2, use temurin distribution, build on java 17
---
 .github/workflows/ci-build-camel-main.yaml |  7 ++++---
 .github/workflows/ci-build.yml             | 20 +++++++++++++-------
 .github/workflows/pr-validate.yml          | 11 ++++++++---
 3 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/ci-build-camel-main.yaml b/.github/workflows/ci-build-camel-main.yaml
index 3de0679..7ac83ab 100644
--- a/.github/workflows/ci-build-camel-main.yaml
+++ b/.github/workflows/ci-build-camel-main.yaml
@@ -49,10 +49,11 @@ jobs:
     - uses: actions/checkout@v2
       with:
         persist-credentials: false
-    - name: Set up JDK 11
-      uses: AdoptOpenJDK/install-jdk@v1
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v2
       with:
-        version: '11'
+        distribution: 'temurin'
+        java-version: ${{ matrix.java }}
     - name: Cache Maven packages
       uses: actions/cache@v2
       with:
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 51cc111..2acfec9 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -46,14 +46,19 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java:
+          - '11'
     steps:
     - uses: actions/checkout@v2
       with:
         persist-credentials: false
-    - name: Set up JDK 11
-      uses: AdoptOpenJDK/install-jdk@v1
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v2
       with:
-        version: '11'
+        distribution: 'temurin'
+        java-version: ${{ matrix.java }}
     - name: Build camel-k-runtime
       run: ./mvnw -V -ntp clean install
     - name: Tar Maven Repo
@@ -69,15 +74,16 @@ jobs:
     strategy:
       matrix:
         java:
-          - '14'
+          - '17'
     steps:
       - uses: actions/checkout@v2
         with:
           persist-credentials: false
-      - name: Set up JDK - ${{ matrix.java }}
-        uses: AdoptOpenJDK/install-jdk@v1
+      - name: Set up JDK ${{ matrix.java }}
+        uses: actions/setup-java@v2
         with:
-          version:  ${{ matrix.java }}
+          distribution: 'temurin'
+          java-version: ${{ matrix.java }}
       - name: Build on ${{ matrix.java }}
         run: |
           ./mvnw ${MAVEN_ARGS} -B clean install
diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml
index 09b59f9..384ceed 100644
--- a/.github/workflows/pr-validate.yml
+++ b/.github/workflows/pr-validate.yml
@@ -35,12 +35,17 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java:
+          - '11'
     steps:
     - uses: actions/checkout@v2
-    - name: Set up JDK 11
-      uses: AdoptOpenJDK/install-jdk@v1
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v2
       with:
-        version: '11'
+        distribution: 'temurin'
+        java-version: ${{ matrix.java }}
     - name: mvn package
       run: |
         ./mvnw ${MAVEN_ARGS} \