Skip to content

Commit 955bd51

Browse files
committed
fix: build for defined Quarkus version in addition to latest stable
Signed-off-by: Chris Laprun <[email protected]>
1 parent bb03f0b commit 955bd51

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

.github/workflows/build-for-quarkus-version.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ on:
5454
required: true
5555
default: 'integration-tests,samples'
5656

57+
concurrency:
58+
group: "${{ inputs.quarkus-version }}-${{inputs.java-version}}-${{ github.ref }}"
59+
cancel-in-progress: true
60+
5761
jobs:
5862
build:
5963
runs-on: ubuntu-latest

.github/workflows/build.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,46 @@ on:
2525
- '.all-contributorsrc'
2626

2727
concurrency:
28-
group: ${{ github.workflow }}-${{ github.ref }}
28+
group: "${{ github.workflow }}-${{ github.ref }}"
2929
cancel-in-progress: true
3030

3131
jobs:
32-
extract-branch-name:
32+
extract-project-metadata:
3333
runs-on: ubuntu-latest
3434
outputs:
3535
branch_name: ${{ steps.extract_branch.outputs.branch }}
36+
qosdk_quarkus_version: ${{ steps.quarkus-version.outputs.quarkus_version }}
37+
latest_stable_quarkus: ${{ steps.get-quarkus-version.outputs.value }}
3638
steps:
3739
- name: Extract branch name
3840
shell: bash
3941
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
4042
id: extract_branch
43+
- uses: actions/checkout@v4
44+
45+
- name: Retrieve Quarkus version
46+
id: quarkus-version
47+
run: echo "quarkus_version=$(mvn help:evaluate -Dexpression=quarkus.version -q -DforceStdout)" >> $GITHUB_OUTPUT
48+
49+
- name: Retrieve latest stable Quarkus version from platform
50+
id: get-quarkus-version
51+
uses: sergeysova/jq-action@v2
52+
with:
53+
cmd: curl https://registry.quarkus.io/client/platforms | jq '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version'
54+
4155
build-with-quarkus-version:
4256
needs:
43-
- extract-branch-name
57+
- extract-project-metadata
4458
strategy:
4559
matrix:
4660
java-version: [ 17, 21 ]
47-
quarkus-version-jq-cmd:
48-
- '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version'
49-
# - '.platforms[0].streams[] | select(.id == "3.6") | .releases[0].version'
61+
quarkus-version:
62+
- ${{ needs.extract-project-metadata.outputs.qosdk_quarkus_version }}
63+
- ${{ needs.extract-project-metadata.outputs.latest_stable_quarkus }}
5064
uses: ./.github/workflows/build-for-quarkus-version.yml
5165
with:
52-
quarkus-version-jq-cmd: ${{ matrix.quarkus-version-jq-cmd }}
53-
# quarkus-version: 3.6.0
66+
quarkus-version: ${{ matrix.quarkus-version }}
5467
java-version: ${{ matrix.java-version }}
55-
branch: ${{ needs.extract-branch-name.outputs.branch_name }}
68+
branch: ${{ needs.extract-project-metadata.outputs.branch_name }}
5669
native-modules: "integration-tests"
5770
repository: ${{ github.event.pull_request.head.repo.full_name }}

0 commit comments

Comments
 (0)