Skip to content

Commit be22b4c

Browse files
authored
chore: Update Arduino CLI (#131)
* chore: Update Arduino CLI * fix: Update GitHub Actions * chore: Update Blues board name * Disable nano33ble device in CI - Mbed platform generates compiler warning arduino/ArduinoCore-mbed#1024
1 parent d8e8fbd commit be22b4c

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

.github/actions/load-ci-image/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ runs:
33
using: 'composite'
44
steps:
55
- name: Set up Docker Buildx
6-
uses: docker/setup-buildx-action@v2
6+
uses: docker/setup-buildx-action@v3
77

88
- name: Download image artifact
9-
uses: actions/download-artifact@v3
9+
uses: actions/download-artifact@v4
1010
with:
1111
name: note_arduino_ci_image
1212
path: /tmp

.github/workflows/note-arduino-ci.yml

+19-14
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
# TODO: This is a 3rd party GitHub action from some dude. Ideally, we'd
2020
# use something more "official".
2121
- name: Check if Dockerfile changed
22-
uses: dorny/paths-filter@v2
22+
uses: dorny/paths-filter@v3
2323
id: filter
2424
with:
2525
base: 'master'
@@ -34,28 +34,28 @@ jobs:
3434

3535
steps:
3636
- name: Checkout code
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838

3939
- name: Login to GitHub Container Registry
40-
uses: docker/login-action@v2
40+
uses: docker/login-action@v3
4141
with:
4242
registry: ghcr.io
4343
username: ${{ github.actor }}
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545

4646
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v2
47+
uses: docker/setup-buildx-action@v3
4848

4949
- name: Rebuild image
50-
uses: docker/build-push-action@v4
50+
uses: docker/build-push-action@v6
5151
with:
5252
context: .
5353
load: true
5454
tags: ghcr.io/blues/note_arduino_ci:latest
5555
outputs: type=docker,dest=/tmp/note_arduino_ci_image.tar
5656

5757
- name: Upload image artifact
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: note_arduino_ci_image
6161
path: /tmp/note_arduino_ci_image.tar
@@ -67,9 +67,11 @@ jobs:
6767

6868
steps:
6969
- name: Checkout code
70-
uses: actions/checkout@v3
70+
uses: actions/checkout@v4
7171

7272
- name: Load CI Docker image
73+
# Only load the Docker image artifact if build_ci_docker_image actually
74+
# ran (e.g. it wasn't skipped and was successful).
7375
if: ${{ needs.build_ci_docker_image.result == 'success' }}
7476
uses: ./.github/actions/load-ci-image
7577

@@ -113,18 +115,21 @@ jobs:
113115
- adafruit:samd:adafruit_feather_m4
114116
# The binary examples don't fit in the Uno's flash.
115117
# - arduino:avr:uno
116-
- arduino:mbed_nano:nano33ble
118+
# The mbed_nano platform generates compiler warning.
119+
# https://github.com/arduino/ArduinoCore-mbed/issues/1024
120+
# - arduino:mbed_nano:nano33ble
117121
- esp32:esp32:featheresp32
118122
- rp2040:rp2040:rpipico
119123
- SparkFun:apollo3:sfe_artemis_thing_plus
120-
- STMicroelectronics:stm32:BluesW:pnum=SWAN_R5
124+
- STMicroelectronics:stm32:Blues:pnum=CYGNET
125+
- STMicroelectronics:stm32:Blues:pnum=SWAN_R5
121126
- STMicroelectronics:stm32:GenF4:pnum=FEATHER_F405
122127
- STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_L432KC
123128

124129
steps:
125130
- name: Checkout code
126131
id: checkout
127-
uses: actions/checkout@v3
132+
uses: actions/checkout@v4
128133

129134
- name: Load CI docker image
130135
if: ${{ needs.build_ci_docker_image.result == 'success' }}
@@ -148,17 +153,17 @@ jobs:
148153

149154
steps:
150155
- name: Login to GitHub Container Registry
151-
uses: docker/login-action@v2
156+
uses: docker/login-action@v3
152157
with:
153158
registry: ghcr.io
154159
username: ${{ github.actor }}
155160
password: ${{ secrets.GITHUB_TOKEN }}
156161

157162
- name: Set up Docker Buildx
158-
uses: docker/setup-buildx-action@v2
163+
uses: docker/setup-buildx-action@v3
159164

160165
- name: Push image to registry
161-
uses: docker/build-push-action@v4
166+
uses: docker/build-push-action@v6
162167
with:
163168
push: true
164169
tags: ghcr.io/blues/note_arduino_ci:latest

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# docker run --entrypoint bash --interactive --rm --tty --volume "$(pwd)":/host-volume/ --workdir /host-volume/ arduino-cli
1010

1111
# Define global arguments
12-
ARG ARDUINO_CLI_VERSION=0.34.2
12+
ARG ARDUINO_CLI_VERSION=1.1.1
1313
ARG DEBIAN_FRONTEND="noninteractive"
1414
ARG UID=1000
1515
ARG USER="blues"

0 commit comments

Comments
 (0)