generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 51
50 lines (48 loc) · 1.43 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build PRs and main when updated
on:
push:
branches:
- "main"
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
- '.all-contributorsrc'
pull_request:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
- '.all-contributorsrc'
jobs:
extract-branch-name:
runs-on: ubuntu-latest
outputs:
branch_name: ${{ steps.extract_branch.outputs.branch }}
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
build-with-quarkus-version:
needs:
- extract-branch-name
strategy:
matrix:
java-version: [ 11, 17 ]
quarkus-version-jq-cmd:
- '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version'
# - '.platforms[0].streams[] | select(.id == "3.2") | .releases[0].version'
uses: ./.github/workflows/build-for-quarkus-version.yml
with:
quarkus-version-jq-cmd: ${{ matrix.quarkus-version-jq-cmd }}
java-version: ${{ matrix.java-version }}
branch: ${{ needs.extract-branch-name.outputs.branch_name }}
native-modules: "integration-tests"
repository: ${{ github.event.pull_request.head.repo.full_name }}