From 2d367cd634af175aec367d3c180f9f65a9ce46f7 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Wed, 12 Feb 2025 18:50:43 +0000 Subject: [PATCH 1/4] chore: Update Arduino CLI --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 97be531..9b5bdde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" From b9570e1186b8666bd419ef89d26129140022b094 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Wed, 12 Feb 2025 19:07:59 +0000 Subject: [PATCH 2/4] fix: Update GitHub Actions --- .github/actions/load-ci-image/action.yml | 4 ++-- .github/workflows/note-arduino-ci.yml | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/actions/load-ci-image/action.yml b/.github/actions/load-ci-image/action.yml index 6afde68..b0da1fb 100644 --- a/.github/actions/load-ci-image/action.yml +++ b/.github/actions/load-ci-image/action.yml @@ -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 diff --git a/.github/workflows/note-arduino-ci.yml b/.github/workflows/note-arduino-ci.yml index ffddf4e..59b463d 100644 --- a/.github/workflows/note-arduino-ci.yml +++ b/.github/workflows/note-arduino-ci.yml @@ -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' @@ -34,20 +34,20 @@ 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 @@ -55,7 +55,7 @@ jobs: 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 @@ -67,7 +67,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Load CI Docker image if: ${{ needs.build_ci_docker_image.result == 'success' }} @@ -124,7 +124,7 @@ jobs: 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' }} @@ -148,17 +148,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 From 45d14b80d17398a6d7fc75578ce075b4ee745758 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Thu, 13 Feb 2025 04:18:55 +0000 Subject: [PATCH 3/4] chore: Update Blues board name --- .github/workflows/note-arduino-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/note-arduino-ci.yml b/.github/workflows/note-arduino-ci.yml index 59b463d..b2f923b 100644 --- a/.github/workflows/note-arduino-ci.yml +++ b/.github/workflows/note-arduino-ci.yml @@ -117,7 +117,8 @@ jobs: - 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 From fb797126599fd7b413975bb88622a44afaba3d09 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Thu, 13 Feb 2025 12:18:26 +0000 Subject: [PATCH 4/4] Disable nano33ble device in CI - Mbed platform generates compiler warning https://github.com/arduino/ArduinoCore-mbed/issues/1024 --- .github/workflows/note-arduino-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/note-arduino-ci.yml b/.github/workflows/note-arduino-ci.yml index b2f923b..6223816 100644 --- a/.github/workflows/note-arduino-ci.yml +++ b/.github/workflows/note-arduino-ci.yml @@ -70,6 +70,8 @@ jobs: 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 @@ -113,7 +115,9 @@ 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