@@ -6,6 +6,10 @@ name: Arduino-Pico CI
6
6
on :
7
7
pull_request :
8
8
9
+ env :
10
+ TRAVIS_BUILD_DIR : ${{ github.workspace }}
11
+ TRAVIS_TAG : ${{ github.ref }}
12
+
9
13
10
14
jobs :
11
15
20
24
- name : Run codespell
21
25
uses : codespell-project/actions-codespell@master
22
26
with :
23
- skip : ./ArduinoCore-API,./libraries/ESP8266SdFat,./libraries/Adafruit_TinyUSB_Arduino,./libraries/LittleFS/lib,./tools/pyserial,./pico-sdk,./.github,./docs/i2s.rst,./cores/rp2040/api,./libraries/FreeRTOS,./tools/libbearssl/bearssl,./include,./libraries/WiFi/examples/BearSSL_Server,./ota/uzlib,./libraries/http-parser/lib,./libraries/WebServer/examples/HelloServerBearSSL/HelloServerBearSSL.ino,./libraries/HTTPUpdateServer/examples/SecureBearSSLUpdater/SecureBearSSLUpdater.ino
27
+ skip : ./ArduinoCore-API,./libraries/ESP8266SdFat,./libraries/Adafruit_TinyUSB_Arduino,./libraries/LittleFS/lib,./tools/pyserial,./pico-sdk,./.github,./docs/i2s.rst,./cores/rp2040/api,./libraries/FreeRTOS,./tools/libbearssl/bearssl,./include,./libraries/WiFi/examples/BearSSL_Server,./ota/uzlib,./libraries/http-parser/lib,./libraries/WebServer/examples/HelloServerBearSSL/HelloServerBearSSL.ino,./libraries/HTTPUpdateServer/examples/SecureBearSSLUpdater/SecureBearSSLUpdater.ino,./.git
24
28
ignore_words_list : ser,dout
25
29
26
30
# Consistent style
46
50
./tests/restyle.sh
47
51
# If anything changed, GIT should return an error and fail the test
48
52
git diff --exit-code
49
- # - name: Check Arduino API copy is clean
50
- # run: |
51
- # git submodule update --init ./ArduinoCore-API
52
- # diff -r ./cores/rp2040/api ./ArduinoCore-API/api
53
53
54
54
# Build all examples on linux (core and Arduino IDE)
55
55
build-linux :
@@ -62,19 +62,17 @@ jobs:
62
62
- uses : actions/checkout@v3
63
63
with :
64
64
submodules : true
65
- - uses : actions/setup-python@v2
65
+ - uses : actions/setup-python@v4
66
66
with :
67
67
python-version : ' 3.x'
68
68
- name : Cache Linux toolchain
69
69
id : cache-linux
70
- uses : actions/cache@v2
70
+ uses : actions/cache@v3
71
71
with :
72
72
path : ./tools/dist
73
73
key : ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
74
74
- name : Build Sketches
75
75
env :
76
- TRAVIS_BUILD_DIR : ${{ github.workspace }}
77
- TRAVIS_TAG : ${{ github.ref }}
78
76
BUILD_PARITY : custom
79
77
mod : 6
80
78
rem : ${{ matrix.chunk }}
@@ -92,19 +90,17 @@ jobs:
92
90
- uses : actions/checkout@v3
93
91
with :
94
92
submodules : true
95
- - uses : actions/setup-python@v2
93
+ - uses : actions/setup-python@v4
96
94
with :
97
95
python-version : ' 3.x'
98
96
- name : Cache Linux toolchain
99
97
id : cache-linux
100
- uses : actions/cache@v2
98
+ uses : actions/cache@v3
101
99
with :
102
100
path : ./tools/dist
103
101
key : ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
104
102
- name : Build Sketches
105
103
env :
106
- TRAVIS_BUILD_DIR : ${{ github.workspace }}
107
- TRAVIS_TAG : ${{ github.ref }}
108
104
BUILD_PARITY : custom
109
105
run : |
110
106
cd pico-sdk
@@ -120,19 +116,17 @@ jobs:
120
116
- uses : actions/checkout@v3
121
117
with :
122
118
submodules : true
123
- - uses : actions/setup-python@v2
119
+ - uses : actions/setup-python@v4
124
120
with :
125
121
python-version : ' 3.x'
126
122
- name : Cache Windows toolchain
127
123
id : cache-windows
128
- uses : actions/cache@v2
124
+ uses : actions/cache@v3
129
125
with :
130
126
path : ./tools/dist
131
127
key : ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
132
128
- name : Build Sketch
133
129
env :
134
- TRAVIS_BUILD_DIR : ${{ github.workspace }}
135
- TRAVIS_TAG : ${{ github.ref }}
136
130
WINDOWS : 1
137
131
BUILD_PARITY : custom
138
132
mod : 500
@@ -150,24 +144,22 @@ jobs:
150
144
# Single build under macOS to ensure the Mac toolchain is good.
151
145
build-mac :
152
146
name : Mac
153
- runs-on : macOS-latest
147
+ runs-on : macOS-12
154
148
steps :
155
149
- uses : actions/checkout@v3
156
150
with :
157
151
submodules : true
158
- - uses : actions/setup-python@v2
152
+ - uses : actions/setup-python@v4
159
153
with :
160
154
python-version : ' 3.x'
161
155
- name : Cache Mac toolchain
162
156
id : cache-mac
163
- uses : actions/cache@v2
157
+ uses : actions/cache@v3
164
158
with :
165
159
path : ./tools/dist
166
160
key : ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
167
161
- name : Build Sketch
168
162
env :
169
- TRAVIS_BUILD_DIR : ${{ github.workspace }}
170
- TRAVIS_TAG : ${{ github.ref }}
171
163
MACOSX : 1
172
164
BUILD_PARITY : custom
173
165
mod : 500
@@ -194,19 +186,21 @@ jobs:
194
186
git submodule update --init
195
187
cd ../..
196
188
- name : Cache pip
197
- uses : actions/cache@v2
189
+ uses : actions/cache@v3
198
190
with :
199
191
path : ~/.cache/pip
200
192
key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
201
193
restore-keys : |
202
194
${{ runner.os }}-pip-
203
195
- name : Cache PlatformIO
204
- uses : actions/cache@v2
196
+ uses : actions/cache@v3
205
197
with :
206
198
path : ~/.platformio
207
199
key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
208
200
- name : Set up Python
209
- uses : actions/setup-python@v2
201
+ uses : actions/setup-python@v4
202
+ with :
203
+ python-version : ' 3.x'
210
204
- name : Install PlatformIO
211
205
run : |
212
206
python -m pip install --upgrade pip
0 commit comments