Skip to content

Commit

Permalink
Adjust pipeline (check java 11, 17, 21)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-ka committed Feb 22, 2024
1 parent f34bc8a commit 0b5f76a
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build_standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ jobs:
path: ./out
if-no-files-found: error

validate_java_8:
validate_java_11:
runs-on: ubuntu-latest
needs:
- build

steps:
- name: Download build
uses: actions/download-artifact@v2
Expand All @@ -57,18 +56,17 @@ jobs:
path: ./out
- name: Grant execute permission for cm
run: chmod +x ./out/bin/cm
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 8
java-version: 11
- name: Execute to check if Java version is compatible
run: ./out/bin/cm

validate_java_11:
validate_java_17:
runs-on: ubuntu-latest
needs:
- build

steps:
- name: Download build
uses: actions/download-artifact@v2
Expand All @@ -77,18 +75,17 @@ jobs:
path: ./out
- name: Grant execute permission for cm
run: chmod +x ./out/bin/cm
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Execute to check if Java version is compatible
run: ./out/bin/cm

validate_java_17:
validate_java_21:
runs-on: ubuntu-latest
needs:
- build

steps:
- name: Download build
uses: actions/download-artifact@v2
Expand All @@ -97,9 +94,9 @@ jobs:
path: ./out
- name: Grant execute permission for cm
run: chmod +x ./out/bin/cm
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 17
java-version: 21
- name: Execute to check if Java version is compatible
run: ./out/bin/cm || if [ $? != 1 ]; then exit -1; fi
run: ./out/bin/cm

0 comments on commit 0b5f76a

Please sign in to comment.