6
6
- ' *'
7
7
tags :
8
8
- ' *'
9
+ paths-ignore :
10
+ - ' docs/**'
11
+ - ' icons/**'
12
+ - ' *.md'
13
+ - ' CONTRIBUTORS'
14
+ - ' LICENSE'
15
+ - ' .github/workflows/ci-lint.yml'
16
+ - ' .github/workflows/ci-sphinx.yml'
17
+ - ' .github/workflows/ci-super-linter.yml'
9
18
pull_request :
10
19
branches :
11
20
- master
12
21
- main
22
+ paths-ignore :
23
+ - ' docs/**'
24
+ - ' icons/**'
25
+ - ' *.md'
26
+ - ' CONTRIBUTORS'
27
+ - ' LICENSE'
28
+ - ' .github/workflows/ci-lint.yml'
29
+ - ' .github/workflows/ci-sphinx.yml'
30
+ - ' .github/workflows/ci-super-linter.yml'
13
31
14
32
env :
15
33
IDRIS2_VERSION : 0.4.0 # For previous-version build
16
34
17
35
jobs :
18
36
37
+ initialise :
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - name : Checkout Project
41
+ uses : actions/checkout@v2
42
+ with :
43
+ # for pull_request so we can do HEAD^2
44
+ fetch-depth : 2
45
+
46
+ - name : Get commit message
47
+ id : get_commit_message
48
+ run : |
49
+ if [[ '${{ github.event_name }}' == 'push' ]]; then
50
+ echo ::set-output name=commit_message::$(git log --format=%B -n 1 HEAD)
51
+ elif [[ '${{ github.event_name }}' == 'pull_request' ]]; then
52
+ echo ::set-output name=commit_message::$(git log --format=%B -n 1 HEAD^2)
53
+ fi
54
+
55
+ outputs :
56
+ commit_message :
57
+ echo "${{ steps.get_commit_message.outputs.commit_message }}"
58
+
19
59
# #####################################################################
20
60
# Build from the previous version
21
61
# We perform this check before all the other ones because:
24
64
# #####################################################################
25
65
26
66
quick-check :
67
+ needs : initialise
27
68
runs-on : ubuntu-latest
69
+ if : |
70
+ !contains(needs.initialise.outputs.commit_message, '[ci: skip]')
28
71
env :
29
72
IDRIS2_CG : chez
30
73
SCHEME : scheme
@@ -79,6 +122,10 @@ jobs:
79
122
ubuntu-bootstrap-chez :
80
123
needs : quick-check
81
124
runs-on : ubuntu-latest
125
+ if : |
126
+ !contains(needs.initialise.outputs.commit_message, '[ci:')
127
+ || contains(needs.initialise.outputs.commit_message, '[ci: ubuntu]')
128
+ || contains(needs.initialise.outputs.commit_message, '[ci: chez]')
82
129
env :
83
130
IDRIS2_CG : chez
84
131
SCHEME : scheme
@@ -104,6 +151,10 @@ jobs:
104
151
macos-bootstrap-chez :
105
152
needs : quick-check
106
153
runs-on : macos-latest
154
+ if : |
155
+ !contains(needs.initialise.outputs.commit_message, '[ci:')
156
+ || contains(needs.initialise.outputs.commit_message, '[ci: macos]')
157
+ || contains(needs.initialise.outputs.commit_message, '[ci: chez]')
107
158
env :
108
159
SCHEME : chez
109
160
steps :
@@ -128,6 +179,10 @@ jobs:
128
179
windows-bootstrap-chez :
129
180
needs : quick-check
130
181
runs-on : windows-latest
182
+ if : |
183
+ !contains(needs.initialise.outputs.commit_message, '[ci:')
184
+ || contains(needs.initialise.outputs.commit_message, '[ci: windows]')
185
+ || contains(needs.initialise.outputs.commit_message, '[ci: chez]')
131
186
env :
132
187
MSYSTEM : MINGW64
133
188
MSYS2_PATH_TYPE : inherit
@@ -173,6 +228,10 @@ jobs:
173
228
nix-bootstrap-chez :
174
229
needs : quick-check
175
230
runs-on : ubuntu-latest
231
+ if : |
232
+ !contains(needs.initialise.outputs.commit_message, '[ci:')
233
+ || contains(needs.initialise.outputs.commit_message, '[ci: nix]')
234
+ || contains(needs.initialise.outputs.commit_message, '[ci: chez]')
176
235
steps :
177
236
- uses : actions/checkout@v2
178
237
with :
@@ -187,6 +246,10 @@ jobs:
187
246
ubuntu-bootstrap-racket :
188
247
needs : quick-check
189
248
runs-on : ubuntu-latest
249
+ if : |
250
+ !contains(needs.initialise.outputs.commit_message, '[ci:')
251
+ || contains(needs.initialise.outputs.commit_message, '[ci: ubuntu]')
252
+ || contains(needs.initialise.outputs.commit_message, '[ci: racket]')
190
253
env :
191
254
IDRIS2_CG : racket
192
255
steps :
@@ -292,6 +355,9 @@ jobs:
292
355
ubuntu-self-host-previous-version :
293
356
needs : quick-check
294
357
runs-on : ubuntu-latest
358
+ if : |
359
+ !contains(needs.initialise.outputs.commit_message, '[ci:')
360
+ || contains(needs.initialise.outputs.commit_message, '[ci: ubuntu]')
295
361
env :
296
362
IDRIS2_CG : chez
297
363
steps :
0 commit comments