Skip to content

chore: Update Arduino CLI #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/load-ci-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ runs:
using: 'composite'
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Download image artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: note_arduino_ci_image
path: /tmp
Expand Down
33 changes: 19 additions & 14 deletions .github/workflows/note-arduino-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Rebuild image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: ghcr.io/blues/note_arduino_ci:latest
outputs: type=docker,dest=/tmp/note_arduino_ci_image.tar

- name: Upload image artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: note_arduino_ci_image
path: /tmp/note_arduino_ci_image.tar
Expand All @@ -67,9 +67,11 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

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

Expand Down Expand Up @@ -113,18 +115,21 @@ jobs:
- adafruit:samd:adafruit_feather_m4
# The binary examples don't fit in the Uno's flash.
# - arduino:avr:uno
- arduino:mbed_nano:nano33ble
# The mbed_nano platform generates compiler warning.
# https://github.com/arduino/ArduinoCore-mbed/issues/1024
# - arduino:mbed_nano:nano33ble
- esp32:esp32:featheresp32
- rp2040:rp2040:rpipico
- SparkFun:apollo3:sfe_artemis_thing_plus
- STMicroelectronics:stm32:BluesW:pnum=SWAN_R5
- STMicroelectronics:stm32:Blues:pnum=CYGNET
- STMicroelectronics:stm32:Blues:pnum=SWAN_R5
- STMicroelectronics:stm32:GenF4:pnum=FEATHER_F405
- STMicroelectronics:stm32:Nucleo_32:pnum=NUCLEO_L432KC

steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

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

steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Push image to registry
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/blues/note_arduino_ci:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# docker run --entrypoint bash --interactive --rm --tty --volume "$(pwd)":/host-volume/ --workdir /host-volume/ arduino-cli

# Define global arguments
ARG ARDUINO_CLI_VERSION=0.34.2
ARG ARDUINO_CLI_VERSION=1.1.1
ARG DEBIAN_FRONTEND="noninteractive"
ARG UID=1000
ARG USER="blues"
Expand Down
Loading