From bfced3af0d53617482f5c73271b6826de6c38866 Mon Sep 17 00:00:00 2001 From: panax Date: Fri, 5 Jul 2024 15:58:28 +0200 Subject: [PATCH] [fix_release_workflow] ci: :pushpin: pin java version to 17 --- .github/workflows/build.yml | 10 +++++++--- .github/workflows/release.yml | 14 ++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdeb5ac..c8b1f55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,8 @@ -name: nf-kafka CI +name: build + +env: + java_version: 17 + on: push: branches: @@ -10,14 +14,14 @@ on: - '*' jobs: build: - name: Build nf-kafka + name: Build if: "!contains(github.event.head_commit.message, '[ci skip]')" runs-on: ubuntu-latest timeout-minutes: 10 strategy: fail-fast: false matrix: - java_version: [11, 17] + java_version: [17] steps: - name: Environment diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae85183..4d2d639 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,8 @@ name: release + +env: + java_version: 17 + on: push: tags: @@ -14,8 +18,6 @@ jobs: timeout-minutes: 90 strategy: fail-fast: false - matrix: - java_version: [11, 17] steps: - name: Environment @@ -27,10 +29,10 @@ jobs: fetch-depth: 1 submodules: true - - name: Setup Java ${{ matrix.java_version }} + - name: Setup Java $java_version uses: actions/setup-java@v1 with: - java-version: ${{matrix.java_version}} + java-version: $java_version architecture: x64 - name: Compile @@ -46,10 +48,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK 19 for x64 + - name: Set up JDK $java_version for x64 uses: actions/setup-java@v3 with: - java-version: "19" + java-version: "$java_version" distribution: "temurin" architecture: x64