@@ -16,20 +16,23 @@ jobs:
16
16
test :
17
17
runs-on : ubuntu-20.04
18
18
outputs :
19
- docs- build : ${{ steps.set-matrix.outputs.docs- build }}
20
- arm- boards : ${{ steps.set-matrix.outputs.arm- boards }}
21
- riscv- boards : ${{ steps.set-matrix.outputs.riscv- boards }}
22
- espressif- boards : ${{ steps.set-matrix.outputs.espressif- boards }}
19
+ build-doc : ${{ steps.set-matrix.outputs.build-doc }}
20
+ boards-arm : ${{ steps.set-matrix.outputs.boards-arm }}
21
+ boards-riscv : ${{ steps.set-matrix.outputs.boards-riscv }}
22
+ boards-espressif : ${{ steps.set-matrix.outputs.boards-espressif }}
23
23
steps :
24
24
- name : Dump GitHub context
25
25
env :
26
26
GITHUB_CONTEXT : ${{ toJson(github) }}
27
27
run : echo "$GITHUB_CONTEXT"
28
28
29
29
with :
30
- submodules : true
30
+ submodules : false
31
31
fetch-depth : 0
32
- - run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
32
+ - name : Populate selected submodules
33
+ run : git submodule update --init extmod/ lib/ tools/
34
+ - name : Fetch tags
35
+ run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
33
36
- name : CircuitPython version
34
37
run : |
35
38
git describe --dirty --tags
38
41
uses : actions/setup-python@v1
39
42
with :
40
43
python-version : 3.8
41
- - name : Install deps
44
+ - name : Install dependencies
42
45
run : |
43
46
sudo apt-get update
44
47
sudo apt-get install -y eatmydata
@@ -109,11 +112,11 @@ jobs:
109
112
zip -9r circuitpython-stubs.zip circuitpython-stubs
110
113
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp circuitpython-stubs/dist/*.tar.gz s3://adafruit-circuit-python/bin/stubs/circuitpython-stubs-${{ env.CP_VERSION }}.zip --no-progress --region us-east-1
111
114
- name : " Get changes"
115
+ if : github.event_name == 'pull_request'
112
116
uses : dorny/paths-filter@v2
113
117
id : filter
114
118
with :
115
119
list-files : json
116
- base : ${{ github.ref }}
117
120
filters : |
118
121
changed:
119
122
- '**'
@@ -134,9 +137,12 @@ jobs:
134
137
run : echo "$GITHUB_CONTEXT"
135
138
136
139
with :
137
- submodules : true
140
+ submodules : false
138
141
fetch-depth : 0
139
- - run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
142
+ - name : Populate selected submodules
143
+ run : git submodule update --init extmod/ lib/ tools/
144
+ - name : Fetch tags
145
+ run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
140
146
- name : CircuitPython version
141
147
run : |
142
148
git describe --dirty --tags
@@ -185,15 +191,16 @@ jobs:
185
191
build-doc :
186
192
runs-on : ubuntu-20.04
187
193
needs : test
188
- if : ${{ needs.test.outputs.docs- build == 'True' }}
194
+ if : ${{ needs.test.outputs.build-doc == 'True' }}
189
195
steps :
190
196
191
197
with :
192
198
submodules : false
193
199
fetch-depth : 0
194
200
- name : Populate selected submodules
195
- run : git submodule update --init extmod/ulab
196
- - run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
201
+ run : git submodule update --init extmod/
202
+ - name : Fetch tags
203
+ run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
197
204
- name : CircuitPython version
198
205
run : |
199
206
git describe --dirty --tags
@@ -202,7 +209,7 @@ jobs:
202
209
uses : actions/setup-python@v1
203
210
with :
204
211
python-version : 3.8
205
- - name : Install deps
212
+ - name : Install dependencies
206
213
run : |
207
214
sudo apt-get update
208
215
sudo apt-get install -y eatmydata
@@ -244,8 +251,8 @@ jobs:
244
251
strategy :
245
252
fail-fast : false
246
253
matrix :
247
- board : ${{ fromJSON(needs.test.outputs.arm- boards) }}
248
- if : ${{ needs.test.outputs.arm- boards != '[]' }}
254
+ board : ${{ fromJSON(needs.test.outputs.boards-arm ) }}
255
+ if : ${{ needs.test.outputs.boards-arm != '[]' }}
249
256
steps :
250
257
- name : Set up Python 3.8
251
258
uses : actions/setup-python@v1
@@ -255,8 +262,9 @@ jobs:
255
262
with :
256
263
submodules : true
257
264
fetch-depth : 0
258
- - run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
259
- - name : Install deps
265
+ - name : Fetch tags
266
+ run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
267
+ - name : Install dependencies
260
268
run : |
261
269
sudo apt-get install -y gettext
262
270
pip install -r requirements-ci.txt -r requirements-dev.txt
@@ -295,8 +303,8 @@ jobs:
295
303
strategy :
296
304
fail-fast : false
297
305
matrix :
298
- board : ${{ fromJSON(needs.test.outputs.riscv- boards) }}
299
- if : ${{ needs.test.outputs.riscv- boards != '[]' }}
306
+ board : ${{ fromJSON(needs.test.outputs.boards-riscv ) }}
307
+ if : ${{ needs.test.outputs.boards-riscv != '[]' }}
300
308
steps :
301
309
- name : Set up Python 3.8
302
310
uses : actions/setup-python@v1
@@ -306,8 +314,9 @@ jobs:
306
314
with :
307
315
submodules : true
308
316
fetch-depth : 0
309
- - run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
310
- - name : Install deps
317
+ - name : Fetch tags
318
+ run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
319
+ - name : Install dependencies
311
320
run : |
312
321
sudo apt-get install -y gettext
313
322
pip install -r requirements-ci.txt -r requirements-dev.txt
@@ -346,8 +355,8 @@ jobs:
346
355
strategy :
347
356
fail-fast : false
348
357
matrix :
349
- board : ${{ fromJSON(needs.test.outputs.espressif- boards) }}
350
- if : ${{ needs.test.outputs.espressif- boards != '[]' }}
358
+ board : ${{ fromJSON(needs.test.outputs.boards-espressif ) }}
359
+ if : ${{ needs.test.outputs.boards-espressif != '[]' }}
351
360
steps :
352
361
- name : Set up Python 3.8
353
362
uses : actions/setup-python@v1
@@ -357,7 +366,8 @@ jobs:
357
366
with :
358
367
submodules : true
359
368
fetch-depth : 0
360
- - run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
369
+ - name : Fetch tags
370
+ run : git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
361
371
- name : CircuitPython version
362
372
run : git describe --dirty --tags
363
373
- uses : actions/cache@v2
@@ -380,7 +390,7 @@ jobs:
380
390
env :
381
391
IDF_PATH : ${{ github.workspace }}/ports/espressif/esp-idf
382
392
IDF_TOOLS_PATH : ${{ github.workspace }}/.idf_tools
383
- - name : Install deps
393
+ - name : Install dependencies
384
394
run : |
385
395
source $IDF_PATH/export.sh
386
396
sudo apt-get install -y gettext ninja-build
0 commit comments