@@ -30,12 +30,12 @@ jobs:
30
30
env :
31
31
GITHUB_CONTEXT : ${{ toJson(github) }}
32
32
run : echo "$GITHUB_CONTEXT"
33
- - uses : actions/checkout@v2.2.0
33
+ - uses : actions/checkout@v3
34
34
with :
35
35
submodules : false
36
36
fetch-depth : 1
37
37
- name : Set up Python 3
38
- uses : actions/setup-python@v2
38
+ uses : actions/setup-python@v4
39
39
with :
40
40
python-version : " 3.x"
41
41
- name : Get CP deps
@@ -92,25 +92,25 @@ jobs:
92
92
working-directory : tests
93
93
- name : Build mpy-cross.static-aarch64
94
94
run : make -C mpy-cross -j2 -f Makefile.static-aarch64
95
- - uses : actions/upload-artifact@v2
95
+ - uses : actions/upload-artifact@v3
96
96
with :
97
97
name : mpy-cross.static-aarch64
98
98
path : mpy-cross/mpy-cross.static-aarch64
99
99
- name : Build mpy-cross.static-raspbian
100
100
run : make -C mpy-cross -j2 -f Makefile.static-raspbian
101
- - uses : actions/upload-artifact@v2
101
+ - uses : actions/upload-artifact@v3
102
102
with :
103
103
name : mpy-cross.static-raspbian
104
104
path : mpy-cross/mpy-cross.static-raspbian
105
105
- name : Build mpy-cross.static
106
106
run : make -C mpy-cross -j2 -f Makefile.static
107
- - uses : actions/upload-artifact@v2
107
+ - uses : actions/upload-artifact@v3
108
108
with :
109
109
name : mpy-cross.static-amd64-linux
110
110
path : mpy-cross/mpy-cross.static
111
111
- name : Build mpy-cross.static-mingw
112
112
run : make -C mpy-cross -j2 -f Makefile.static-mingw
113
- - uses : actions/upload-artifact@v2
113
+ - uses : actions/upload-artifact@v3
114
114
with :
115
115
name : mpy-cross.static-x64-windows
116
116
path : mpy-cross/mpy-cross.static.exe
@@ -143,18 +143,18 @@ jobs:
143
143
144
144
145
145
mpy-cross-mac :
146
- runs-on : macos-10.15
146
+ runs-on : macos-11
147
147
steps :
148
148
- name : Dump GitHub context
149
149
env :
150
150
GITHUB_CONTEXT : ${{ toJson(github) }}
151
151
run : echo "$GITHUB_CONTEXT"
152
- - uses : actions/checkout@v2.2.0
152
+ - uses : actions/checkout@v3
153
153
with :
154
154
submodules : false
155
155
fetch-depth : 1
156
156
- name : Set up Python 3
157
- uses : actions/setup-python@v2
157
+ uses : actions/setup-python@v4
158
158
with :
159
159
python-version : " 3.x"
160
160
- name : Get CP deps
@@ -174,29 +174,27 @@ jobs:
174
174
msgfmt --version
175
175
- name : Build mpy-cross
176
176
run : make -C mpy-cross -j2
177
- - uses : actions/upload-artifact@v2
177
+ - uses : actions/upload-artifact@v3
178
178
with :
179
- name : mpy-cross-macos-catalina
179
+ name : mpy-cross-macos-11-x64
180
180
path : mpy-cross/mpy-cross
181
- - name : Select SDK for M1 build
182
- run : sudo xcode-select -switch /Applications/Xcode_12.3.app
183
181
- name : Build mpy-cross (arm64)
184
182
run : make -C mpy-cross -j2 -f Makefile.m1 V=2
185
- - uses : actions/upload-artifact@v2
183
+ - uses : actions/upload-artifact@v3
186
184
with :
187
- name : mpy-cross-macos-bigsur -arm64
185
+ name : mpy-cross-macos-11 -arm64
188
186
path : mpy-cross/mpy-cross-arm64
189
187
- name : Make universal binary
190
188
run : lipo -create -output mpy-cross-macos-universal mpy-cross/mpy-cross mpy-cross/mpy-cross-arm64
191
- - uses : actions/upload-artifact@v2
189
+ - uses : actions/upload-artifact@v3
192
190
with :
193
- name : mpy-cross-macos-universal
191
+ name : mpy-cross-macos-11- universal
194
192
path : mpy-cross-macos-universal
195
193
- name : Upload mpy-cross build to S3
196
194
run : |
197
- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-universal -${{ env.CP_VERSION }} --no-progress --region us-east-1
198
- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-bigsur -${{ env.CP_VERSION }}-arm64 --no-progress --region us-east-1
199
- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-catalina -${{ env.CP_VERSION }} --no-progress --region us-east-1
195
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-11 -${{ env.CP_VERSION }}-universal --no-progress --region us-east-1
196
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-11 -${{ env.CP_VERSION }}-arm64 --no-progress --region us-east-1
197
+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/mpy-cross-macos-11 -${{ env.CP_VERSION }}-x64 --no-progress --region us-east-1
200
198
env :
201
199
AWS_PAGER : ' '
202
200
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -209,7 +207,7 @@ jobs:
209
207
needs : test
210
208
if : ${{ needs.test.outputs.build-doc == 'True' }}
211
209
steps :
212
- - uses : actions/checkout@v2.2.0
210
+ - uses : actions/checkout@v3
213
211
with :
214
212
submodules : false
215
213
fetch-depth : 1
@@ -220,7 +218,7 @@ jobs:
220
218
tools/describe || git log --parents HEAD~4..
221
219
echo >>$GITHUB_ENV CP_VERSION=$(tools/describe)
222
220
- name : Set up Python 3
223
- uses : actions/setup-python@v2
221
+ uses : actions/setup-python@v4
224
222
with :
225
223
python-version : " 3.x"
226
224
- name : Install dependencies
@@ -231,20 +229,20 @@ jobs:
231
229
pip install -r requirements-ci.txt -r requirements-doc.txt
232
230
- name : Build and Validate Stubs
233
231
run : make check-stubs -j2
234
- - uses : actions/upload-artifact@v2
232
+ - uses : actions/upload-artifact@v3
235
233
with :
236
234
name : stubs
237
235
path : circuitpython-stubs/dist/*
238
236
- name : Test Documentation Build (HTML)
239
237
run : sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
240
- - uses : actions/upload-artifact@v2
238
+ - uses : actions/upload-artifact@v3
241
239
with :
242
240
name : docs
243
241
path : _build/html
244
242
- name : Test Documentation Build (LaTeX/PDF)
245
243
run : |
246
244
make latexpdf
247
- - uses : actions/upload-artifact@v2
245
+ - uses : actions/upload-artifact@v3
248
246
with :
249
247
name : docs
250
248
path : _build/latex
@@ -278,21 +276,22 @@ jobs:
278
276
if : ${{ needs.test.outputs.boards-arm != '[]' }}
279
277
steps :
280
278
- name : Set up Python 3
281
- uses : actions/setup-python@v2
279
+ uses : actions/setup-python@v4
282
280
with :
283
281
python-version : " 3.x"
284
- - uses : actions/checkout@v2.2.0
282
+ - uses : actions/checkout@v3
285
283
with :
286
284
submodules : false
287
285
fetch-depth : 1
288
286
- name : Get CP deps
289
287
run : python tools/ci_fetch_deps.py ${{ matrix.board }} ${{ github.sha }}
288
+ - uses : carlosperate/arm-none-eabi-gcc-action@v1
289
+ with :
290
+ release : ' 10-2020-q4'
290
291
- name : Install dependencies
291
292
run : |
292
293
sudo apt-get install -y gettext
293
294
pip install -r requirements-ci.txt -r requirements-dev.txt
294
- wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
295
- sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
296
295
- name : Versions
297
296
run : |
298
297
gcc --version
@@ -307,7 +306,7 @@ jobs:
307
306
working-directory : tools
308
307
env :
309
308
BOARDS : ${{ matrix.board }}
310
- - uses : actions/upload-artifact@v2
309
+ - uses : actions/upload-artifact@v3
311
310
with :
312
311
name : ${{ matrix.board }}
313
312
path : bin/${{ matrix.board }}
@@ -330,10 +329,10 @@ jobs:
330
329
if : ${{ needs.test.outputs.boards-riscv != '[]' }}
331
330
steps :
332
331
- name : Set up Python 3
333
- uses : actions/setup-python@v2
332
+ uses : actions/setup-python@v4
334
333
with :
335
334
python-version : " 3.x"
336
- - uses : actions/checkout@v2.2.0
335
+ - uses : actions/checkout@v3
337
336
with :
338
337
submodules : false
339
338
fetch-depth : 1
@@ -359,7 +358,7 @@ jobs:
359
358
working-directory : tools
360
359
env :
361
360
BOARDS : ${{ matrix.board }}
362
- - uses : actions/upload-artifact@v2
361
+ - uses : actions/upload-artifact@v3
363
362
with :
364
363
name : ${{ matrix.board }}
365
364
path : bin/${{ matrix.board }}
@@ -382,10 +381,11 @@ jobs:
382
381
if : ${{ needs.test.outputs.boards-espressif != '[]' }}
383
382
steps :
384
383
- name : Set up Python 3
385
- uses : actions/setup-python@v2
384
+ id : py3
385
+ uses : actions/setup-python@v4
386
386
with :
387
387
python-version : " 3.x"
388
- - uses : actions/checkout@v2.2.0
388
+ - uses : actions/checkout@v3
389
389
with :
390
390
submodules : false
391
391
fetch-depth : 1
@@ -395,12 +395,12 @@ jobs:
395
395
run : |
396
396
tools/describe || git log --parents HEAD~4..
397
397
echo >>$GITHUB_ENV CP_VERSION=$(tools/describe)
398
- - uses : actions/cache@v2
398
+ - uses : actions/cache@v3
399
399
name : Fetch IDF tool cache
400
400
id : idf-cache
401
401
with :
402
402
path : ${{ github.workspace }}/.idf_tools
403
- key : ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/espressif/esp-idf/HEAD') }}-20220404
403
+ key : ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/espressif/esp-idf/HEAD') }}-${{ steps.py3.outputs.python-path }}- 20220404
404
404
- name : Clone IDF submodules
405
405
run : |
406
406
(cd $IDF_PATH && git submodule update --init)
@@ -449,7 +449,7 @@ jobs:
449
449
IDF_PATH : ${{ github.workspace }}/ports/espressif/esp-idf
450
450
IDF_TOOLS_PATH : ${{ github.workspace }}/.idf_tools
451
451
BOARDS : ${{ matrix.board }}
452
- - uses : actions/upload-artifact@v2
452
+ - uses : actions/upload-artifact@v3
453
453
with :
454
454
name : ${{ matrix.board }}
455
455
path : bin/${{ matrix.board }}
@@ -471,10 +471,10 @@ jobs:
471
471
if : ${{ needs.test.outputs.boards-aarch != '[]' }}
472
472
steps :
473
473
- name : Set up Python 3
474
- uses : actions/setup-python@v2
474
+ uses : actions/setup-python@v4
475
475
with :
476
476
python-version : " 3.x"
477
- - uses : actions/checkout@v2.2.0
477
+ - uses : actions/checkout@v3
478
478
with :
479
479
submodules : false
480
480
fetch-depth : 1
@@ -486,8 +486,9 @@ jobs:
486
486
pip install -r requirements-ci.txt -r requirements-dev.txt
487
487
wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
488
488
sudo tar -C /usr --strip-components=1 -xaf gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz
489
- wget --no-verbose https://adafruit-circuit-python.s3.amazonaws.com/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
490
- sudo tar -C /usr --strip-components=1 -xaf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
489
+ - uses : carlosperate/arm-none-eabi-gcc-action@v1
490
+ with :
491
+ release : ' 10-2020-q4'
491
492
- name : Install mkfs.fat
492
493
run : |
493
494
wget https://github.com/dosfstools/dosfstools/releases/download/v4.2/dosfstools-4.2.tar.gz
@@ -513,7 +514,7 @@ jobs:
513
514
working-directory : tools
514
515
env :
515
516
BOARDS : ${{ matrix.board }}
516
- - uses : actions/upload-artifact@v2
517
+ - uses : actions/upload-artifact@v3
517
518
with :
518
519
name : ${{ matrix.board }}
519
520
path : bin/${{ matrix.board }}
0 commit comments