-
Notifications
You must be signed in to change notification settings - Fork 15
106 lines (91 loc) · 3.1 KB
/
build.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: build
on:
workflow_dispatch: # manual trigger
inputs:
run-testenv:
description: "Run test environment if 'true'"
required: false
type: string
default: "false"
pull_request:
types: [ opened, reopened, synchronize, edited, ready_for_review ]
push:
branches: [ "**" ]
tags-ignore:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-*
- canary
paths-ignore:
- ".ci/kubernetes/**"
env:
RUST_BACKTRACE: 1
# Required GitHub repository variables:
# https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job
# OPENDUT_GH_RUNNER_SMALL: runner labels for small jobs
# OPENDUT_GH_RUNNER_LARGE: runner labels for large jobs
jobs:
legal:
uses: ./.github/workflows/job-legal.yaml
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_SMALL || '[\"ubuntu-latest\"]' }}"
generate-sbom:
uses: ./.github/workflows/job-sbom.yaml
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_SMALL || '[\"ubuntu-latest\"]' }}"
test:
uses: ./.github/workflows/job-test.yaml
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
build-carl:
uses: ./.github/workflows/job-build-carl.yaml
needs: [ test ]
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
build-cleo:
uses: ./.github/workflows/job-build-cleo.yaml
needs: [ test ]
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
build-theo:
uses: ./.github/workflows/job-build-theo.yaml
needs: [ test ]
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
build-edgar:
uses: ./.github/workflows/job-build-edgar.yaml
needs: [ test ]
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
build-lea:
uses: ./.github/workflows/job-build-lea.yaml
needs: [ test ]
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
bundle-edgar:
needs: [ legal, build-edgar ]
uses: ./.github/workflows/job-bundle-edgar.yaml
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
bundle-cleo:
needs: [ legal, build-cleo ]
uses: ./.github/workflows/job-bundle-cleo.yaml
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
bundle-carl:
needs: [ legal, build-carl, build-lea, bundle-cleo, bundle-edgar ]
uses: ./.github/workflows/job-bundle-carl.yaml
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
status-check:
needs: [ legal, test ]
runs-on: "${{ fromJson(vars.OPENDUT_GH_RUNNER_SMALL || '[\"ubuntu-latest\"]') }}"
steps:
- run: echo "All jobs required for the status check have been completed."
run-testenv:
uses: ./.github/workflows/job-run-testenv.yaml
needs: [ legal, bundle-carl, bundle-edgar, bundle-cleo ]
with:
runs-on: "${{ vars.OPENDUT_GH_RUNNER_LARGE || '[\"ubuntu-latest\"]' }}"
# run-testenv: "${{ github.event.inputs.run-testenv }}"
run-testenv: "true"
secrets: inherit