Skip to content

Commit

Permalink
Merge pull request #3 from panaxging/ci/fix_release_workflow
Browse files Browse the repository at this point in the history
Pin java version to 17
  • Loading branch information
panaxging authored Jul 5, 2024
2 parents e2a1eef + bfced3a commit c77f51c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: nf-kafka CI
name: build

env:
java_version: 17

on:
push:
branches:
Expand All @@ -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
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: release

env:
java_version: 17

on:
push:
tags:
Expand All @@ -14,8 +18,6 @@ jobs:
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
java_version: [11, 17]

steps:
- name: Environment
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit c77f51c

Please sign in to comment.