6
6
DEVELOPER : 1
7
7
8
8
jobs :
9
+ ci-config :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ enabled : ${{ steps.check-ref.outputs.enabled }}
13
+ steps :
14
+ - name : try to clone ci-config branch
15
+ continue-on-error : true
16
+ run : |
17
+ git -c protocol.version=2 clone \
18
+ --no-tags \
19
+ --single-branch \
20
+ -b ci-config \
21
+ --depth 1 \
22
+ --no-checkout \
23
+ --filter=blob:none \
24
+ https://github.com/${{ github.repository }} \
25
+ config-repo &&
26
+ cd config-repo &&
27
+ git checkout HEAD -- ci/config
28
+ - id : check-ref
29
+ name : check whether CI is enabled for ref
30
+ run : |
31
+ enabled=yes
32
+ if test -x config-repo/ci/config/allow-ref &&
33
+ ! config-repo/ci/config/allow-ref '${{ github.ref }}'
34
+ then
35
+ enabled=no
36
+ fi
37
+ echo "::set-output name=enabled::$enabled"
38
+
9
39
windows-build :
40
+ needs : ci-config
41
+ if : needs.ci-config.outputs.enabled == 'yes'
10
42
runs-on : windows-latest
11
43
steps :
12
44
- uses : actions/checkout@v1
70
102
name : failed-tests-windows
71
103
path : ${{env.FAILED_TEST_ARTIFACTS}}
72
104
vs-build :
105
+ needs : ci-config
106
+ if : needs.ci-config.outputs.enabled == 'yes'
73
107
env :
74
108
MSYSTEM : MINGW64
75
109
NO_PERL : 1
@@ -154,6 +188,8 @@ jobs:
154
188
${{matrix.nr}} 10 t[0-9]*.sh)
155
189
"@
156
190
regular :
191
+ needs : ci-config
192
+ if : needs.ci-config.outputs.enabled == 'yes'
157
193
strategy :
158
194
matrix :
159
195
vector :
@@ -189,6 +225,8 @@ jobs:
189
225
name : failed-tests-${{matrix.vector.jobname}}
190
226
path : ${{env.FAILED_TEST_ARTIFACTS}}
191
227
dockerized :
228
+ needs : ci-config
229
+ if : needs.ci-config.outputs.enabled == 'yes'
192
230
strategy :
193
231
matrix :
194
232
vector :
@@ -213,6 +251,8 @@ jobs:
213
251
name : failed-tests-${{matrix.vector.jobname}}
214
252
path : ${{env.FAILED_TEST_ARTIFACTS}}
215
253
static-analysis :
254
+ needs : ci-config
255
+ if : needs.ci-config.outputs.enabled == 'yes'
216
256
env :
217
257
jobname : StaticAnalysis
218
258
runs-on : ubuntu-latest
@@ -221,6 +261,8 @@ jobs:
221
261
- run : ci/install-dependencies.sh
222
262
- run : ci/run-static-analysis.sh
223
263
documentation :
264
+ needs : ci-config
265
+ if : needs.ci-config.outputs.enabled == 'yes'
224
266
env :
225
267
jobname : Documentation
226
268
runs-on : ubuntu-latest
0 commit comments