-
Notifications
You must be signed in to change notification settings - Fork 406
58 lines (56 loc) · 2.23 KB
/
branch-compilation.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
51
52
53
54
55
56
57
58
name: Branch Compilation
on:
workflow_dispatch:
inputs:
java-version:
description: 'the java version to compile with'
required: true
default: '11'
maven-version:
description: 'the maven version to compile with'
required: true
default: '3.8.1'
starting-project:
description: 'the project to start the job with (it is normally the latest leaf from the tree)'
required: true
default: 'kiegroup/kie-wb-distributions'
additional-flags:
description: 'the additional-flags input. For example "-b main; --fullProjectDependencyTree"'
required: true
default: ''
logger-level:
description: 'the logger-level. info by default'
required: true
default: 'info'
jobs:
build-chain:
concurrency:
group: pull_request-${{ github.head_ref }}
cancel-in-progress: true
strategy:
matrix:
os: [ubuntu-latest]
java-version: [8, 11]
maven-version: ['3.8.1']
fail-fast: true
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - Java ${{ matrix.java-version }} - Maven
steps:
- name: Clean Disk Space
uses: kiegroup/kie-ci/.ci/actions/ubuntu-disk-space@main
- name: Java and Maven Setup
uses: kiegroup/kie-ci/.ci/actions/maven@main
with:
java-version: ${{ github.event.inputs.java-version }}
maven-version: ${{ github.event.inputs.maven-version }}
cache-key-prefix: ${{ runner.os }}-${{ github.event.inputs.java-version }}-maven${{ github.event.inputs.maven-version }}
- name: Build Chain
uses: kiegroup/kie-ci/.ci/actions/build-chain@main
with:
definition-file: https://raw.githubusercontent.com/kiegroup/droolsjbpm-build-bootstrap/main/.ci/compilation-config.yaml
starting-project: ${{ github.event.inputs.starting-project }}
annotations-prefix: ${{ runner.os }}-${{ github.event.inputs.java-version }}/${{ github.event.inputs.maven-version }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
flow-type: branch
additional-flags: ${{ github.event.inputs.additional-flags }}
logger-level: ${{ github.event.inputs.logger-level }}