Skip to content

Commit 929cca4

Browse files
authored
feat: add manual workflow to build against specific Quarkus PR (#796)
Signed-off-by: Chris Laprun <[email protected]>
1 parent d61ce2a commit 929cca4

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build with specific Quarkus PR
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Target QOSDK branch to build'
8+
required: true
9+
default: 'main'
10+
quarkus_pr:
11+
description: 'Quarkus PR number to use to run a QOSDK build with'
12+
required: true
13+
14+
jobs:
15+
build-quarkus-pr:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
repository: quarkusio/quarkus
21+
path: quarkus
22+
23+
- name: Set up Java
24+
uses: actions/setup-java@v3
25+
with:
26+
distribution: temurin
27+
java-version: 17
28+
cache: 'maven'
29+
30+
- name: Check out PR ${{ github.event.inputs.quarkus_pr }}
31+
run: |
32+
cd quarkus
33+
git fetch origin pull/${{ github.event.inputs.quarkus_pr }}/head:pr-to-check
34+
git switch pr-to-check
35+
mvn versions:set -DnewVersion=999.${{ github.event.inputs.quarkus_pr }}-SNAPSHOT versions:commit
36+
mvn -Dquickly
37+
38+
39+
build-with-quarkus-version:
40+
uses: ./.github/workflows/build-for-quarkus-version.yml
41+
with:
42+
quarkus-version: 999.${{ github.event.inputs.quarkus_pr }}-SNAPSHOT
43+
java-version: 17
44+
branch: ${{ github.event.inputs.branch }}
45+
native-modules: "samples,integration-tests"
46+
# repository: ${{ github.event.pull_request.head.repo.full_name }}

0 commit comments

Comments
 (0)