-
Notifications
You must be signed in to change notification settings - Fork 103
121 lines (114 loc) · 3.36 KB
/
diff.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: "Diff"
concurrency:
group: ${{ github.head_ref || github.sha }}
cancel-in-progress: true
on:
merge_group:
pull_request:
paths-ignore:
- "docs/**"
- "**/*.md"
- ".clang-format"
- "CODEOWNERS"
- "licenses/*"
workflow_dispatch:
inputs:
community_core:
type: boolean
default: true
coverage_core:
type: boolean
default: true
debug_core:
type: boolean
default: true
debug_integration:
type: boolean
default: true
jepsen_core:
type: boolean
default: true
release_core:
type: boolean
default: true
release_benchmark:
type: boolean
default: true
release_e2e:
type: boolean
default: true
release_stress:
type: boolean
default: true
jobs:
DiffSetup:
runs-on: ubuntu-latest
outputs:
run_community_core: ${{ steps.setup.outputs.run_community_core }}
run_coverage_core: ${{ steps.setup.outputs.run_coverage_core }}
run_debug_core: ${{ steps.setup.outputs.run_debug_core }}
run_debug_integration: ${{ steps.setup.outputs.run_debug_integration }}
run_jepsen_core: ${{ steps.setup.outputs.run_jepsen_core }}
run_release_core: ${{ steps.setup.outputs.run_release_core }}
run_release_benchmark: ${{ steps.setup.outputs.run_release_benchmark}}
run_release_e2e: ${{ steps.setup.outputs.run_release_e2e }}
run_release_stress: ${{ steps.setup.outputs.run_release_stress }}
env:
GH_CONTEXT: ${{ toJson(github) }}
GH_CONTEXT_FILE_NAME: github_context.json
steps:
- name: Set up repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Dump GitHub context
run: echo "$GH_CONTEXT" >> "$GH_CONTEXT_FILE_NAME"
- name: Set up diff execution
id: setup
run: ./tools/diff_setup.py --gh-context-path "$GH_CONTEXT_FILE_NAME" --base-branch "origin/master"
Community:
needs: DiffSetup
uses: ./.github/workflows/diff_community.yaml
with:
arch: 'amd'
os: 'debian-11'
toolchain: 'v5'
run_core: ${{ needs.DiffSetup.outputs.run_community_core }}
secrets: inherit
Coverage:
needs: DiffSetup
uses: ./.github/workflows/diff_coverage.yaml
with:
arch: 'amd'
os: 'debian-11'
toolchain: 'v5'
run_core: ${{ needs.DiffSetup.outputs.run_coverage_core }}
secrets: inherit
Debug:
needs: DiffSetup
uses: ./.github/workflows/diff_debug.yaml
with:
arch: 'amd'
os: 'debian-11'
toolchain: 'v5'
run_core: ${{ needs.DiffSetup.outputs.run_debug_core }}
run_integration: ${{ needs.DiffSetup.outputs.run_debug_integration }}
secrets: inherit
Jepsen:
needs: DiffSetup
uses: ./.github/workflows/diff_jepsen.yaml
with:
run_core: ${{ needs.DiffSetup.outputs.run_jepsen_core }}
secrets: inherit
Release:
needs: DiffSetup
uses: ./.github/workflows/diff_release.yaml
with:
arch: 'amd'
os: 'debian-11'
toolchain: 'v5'
run_core: ${{ needs.DiffSetup.outputs.run_release_core }}
run_benchmark: ${{ needs.DiffSetup.outputs.run_release_benchmark }}
run_e2e: ${{ needs.DiffSetup.outputs.run_release_e2e }}
run_stress: ${{ needs.DiffSetup.outputs.run_release_stress }}
secrets: inherit