-
Notifications
You must be signed in to change notification settings - Fork 5
173 lines (159 loc) · 8.26 KB
/
ci-distro-trial.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name: ci-distro-trial
on:
pull_request:
branches: [dev]
paths:
- 20*.*/*/passed/seed-environment-conda.yml
- 20*.*/*/released/seed-environment-conda.yml
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
prepare:
uses: ./.github/workflows/ci-distro-trial_0-prepare.yaml
rebuild-0:
needs: [prepare]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[0] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 0
rebuild-1:
needs: [prepare, rebuild-0]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[1] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 1
rebuild-2:
needs: [prepare, rebuild-1]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[2] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 2
rebuild-3:
needs: [prepare, rebuild-2]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[3] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 3
rebuild-4:
needs: [prepare, rebuild-3]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[4] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 4
rebuild-5:
needs: [prepare, rebuild-4]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[5] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 5
rebuild-6:
needs: [prepare, rebuild-5]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[6] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 6
rebuild-7:
needs: [prepare, rebuild-6]
if: ${{ fromJSON(needs.prepare.outputs.generation-matrix)[7] != null }}
uses: ./.github/workflows/ci-distro-trial_1-build-generation.yaml
with:
is-language: ${{ needs.prepare.outputs.is-language }}
is-rebuild: ${{ needs.prepare.outputs.is-rebuild }}
rev-deps-key: ${{ needs.prepare.outputs.rev-deps-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
sibling-ref: ${{ needs.prepare.outputs.sibling-ref }}
matrix-index: 7
build-metapackage:
needs: [prepare, rebuild-0, rebuild-1, rebuild-2, rebuild-3, rebuild-4, rebuild-5, rebuild-6, rebuild-7]
if: ${{ always() && !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
uses: ./.github/workflows/ci-distro-trial_2-build-metapackage.yaml
with:
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
solved-environment-key: ${{ needs.prepare.outputs.solved-environment-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
distro-name: qiime2-${{ needs.prepare.outputs.distro }}
test-metapackage:
needs: [prepare, build-metapackage]
if: ${{ always() && !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
uses: ./.github/workflows/ci-distro-trial_3-test-metapackage.yaml
with:
solved-environment-key: ${{ needs.prepare.outputs.solved-environment-key }}
matrix-key: ${{ needs.prepare.outputs.matrix-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}
patched-channel-key: ${{ needs.prepare.outputs.patched-channel-key }}
distro-name: qiime2-${{ needs.prepare.outputs.distro }}
upload-builds:
needs: [prepare, test-metapackage]
if: ${{ always() && !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
uses: ./.github/workflows/ci-distro-trial_4-upload-builds.yaml
secrets: inherit
with:
epoch: ${{ needs.prepare.outputs.epoch }}
distro: ${{ needs.prepare.outputs.distro }}
is-release: ${{ needs.prepare.outputs.is-release }}
pr-ref: ${{ github.event.pull_request.head.ref }}
seed-environment-key: ${{ needs.prepare.outputs.seed-environment-key }}
solved-environment-key: ${{ needs.prepare.outputs.solved-environment-key }}
repodata-patches-key: ${{ needs.prepare.outputs.repodata-patches-key }}
rebuilt-channel-key: ${{ needs.prepare.outputs.rebuilt-channel-key }}