Skip to content

Commit ec76310

Browse files
Update GH actions to non-deprecated versions (#938)
1 parent 07a1484 commit ec76310

File tree

3 files changed

+25
-31
lines changed

3 files changed

+25
-31
lines changed

.github/workflows/pull-request.yml

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: Arduino-Pico CI
66
on:
77
pull_request:
88

9+
env:
10+
TRAVIS_BUILD_DIR: ${{ github.workspace }}
11+
TRAVIS_TAG: ${{ github.ref }}
12+
913

1014
jobs:
1115

@@ -20,7 +24,7 @@ jobs:
2024
- name: Run codespell
2125
uses: codespell-project/actions-codespell@master
2226
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
2428
ignore_words_list: ser,dout
2529

2630
# Consistent style
@@ -46,10 +50,6 @@ jobs:
4650
./tests/restyle.sh
4751
# If anything changed, GIT should return an error and fail the test
4852
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
5353
5454
# Build all examples on linux (core and Arduino IDE)
5555
build-linux:
@@ -62,19 +62,17 @@ jobs:
6262
- uses: actions/checkout@v3
6363
with:
6464
submodules: true
65-
- uses: actions/setup-python@v2
65+
- uses: actions/setup-python@v4
6666
with:
6767
python-version: '3.x'
6868
- name: Cache Linux toolchain
6969
id: cache-linux
70-
uses: actions/cache@v2
70+
uses: actions/cache@v3
7171
with:
7272
path: ./tools/dist
7373
key: ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
7474
- name: Build Sketches
7575
env:
76-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
77-
TRAVIS_TAG: ${{ github.ref }}
7876
BUILD_PARITY: custom
7977
mod: 6
8078
rem: ${{ matrix.chunk }}
@@ -92,19 +90,17 @@ jobs:
9290
- uses: actions/checkout@v3
9391
with:
9492
submodules: true
95-
- uses: actions/setup-python@v2
93+
- uses: actions/setup-python@v4
9694
with:
9795
python-version: '3.x'
9896
- name: Cache Linux toolchain
9997
id: cache-linux
100-
uses: actions/cache@v2
98+
uses: actions/cache@v3
10199
with:
102100
path: ./tools/dist
103101
key: ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
104102
- name: Build Sketches
105103
env:
106-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
107-
TRAVIS_TAG: ${{ github.ref }}
108104
BUILD_PARITY: custom
109105
run: |
110106
cd pico-sdk
@@ -120,19 +116,17 @@ jobs:
120116
- uses: actions/checkout@v3
121117
with:
122118
submodules: true
123-
- uses: actions/setup-python@v2
119+
- uses: actions/setup-python@v4
124120
with:
125121
python-version: '3.x'
126122
- name: Cache Windows toolchain
127123
id: cache-windows
128-
uses: actions/cache@v2
124+
uses: actions/cache@v3
129125
with:
130126
path: ./tools/dist
131127
key: ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
132128
- name: Build Sketch
133129
env:
134-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
135-
TRAVIS_TAG: ${{ github.ref }}
136130
WINDOWS: 1
137131
BUILD_PARITY: custom
138132
mod: 500
@@ -150,24 +144,22 @@ jobs:
150144
# Single build under macOS to ensure the Mac toolchain is good.
151145
build-mac:
152146
name: Mac
153-
runs-on: macOS-latest
147+
runs-on: macOS-12
154148
steps:
155149
- uses: actions/checkout@v3
156150
with:
157151
submodules: true
158-
- uses: actions/setup-python@v2
152+
- uses: actions/setup-python@v4
159153
with:
160154
python-version: '3.x'
161155
- name: Cache Mac toolchain
162156
id: cache-mac
163-
uses: actions/cache@v2
157+
uses: actions/cache@v3
164158
with:
165159
path: ./tools/dist
166160
key: ${{ runner.os }}-${{ hashFiles('package/package_pico_index.template.json', 'tests/common.sh') }}
167161
- name: Build Sketch
168162
env:
169-
TRAVIS_BUILD_DIR: ${{ github.workspace }}
170-
TRAVIS_TAG: ${{ github.ref }}
171163
MACOSX: 1
172164
BUILD_PARITY: custom
173165
mod: 500
@@ -194,19 +186,21 @@ jobs:
194186
git submodule update --init
195187
cd ../..
196188
- name: Cache pip
197-
uses: actions/cache@v2
189+
uses: actions/cache@v3
198190
with:
199191
path: ~/.cache/pip
200192
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
201193
restore-keys: |
202194
${{ runner.os }}-pip-
203195
- name: Cache PlatformIO
204-
uses: actions/cache@v2
196+
uses: actions/cache@v3
205197
with:
206198
path: ~/.platformio
207199
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
208200
- name: Set up Python
209-
uses: actions/setup-python@v2
201+
uses: actions/setup-python@v4
202+
with:
203+
python-version: '3.x'
210204
- name: Install PlatformIO
211205
run: |
212206
python -m pip install --upgrade pip

.github/workflows/release-to-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ jobs:
99
name: Update master JSON file
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
submodules: true
1515
- name: Cache pip
16-
uses: actions/cache@v2
16+
uses: actions/cache@v3
1717
with:
1818
path: ~/.cache/pip
1919
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
2020
restore-keys: |
2121
${{ runner.os }}-pip-
2222
- name: Cache PlatformIO
23-
uses: actions/cache@v2
23+
uses: actions/cache@v3
2424
with:
2525
path: ~/.platformio
2626
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
27-
- uses: actions/setup-python@v2
27+
- uses: actions/setup-python@v4
2828
with:
2929
python-version: '3.x'
3030
- name: Install PlatformIO

.github/workflows/tag-to-draft-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
name: Package
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
with:
2020
submodules: true
2121
fetch-depth: 0
22-
- uses: actions/setup-python@v2
22+
- uses: actions/setup-python@v4
2323
with:
2424
python-version: '3.x'
2525
- name: Build package JSON

0 commit comments

Comments
 (0)