From 6186afe6df89fe1bc44f5fb5bc166ea4607ce20f Mon Sep 17 00:00:00 2001 From: per1234 Date: Thu, 23 Sep 2021 08:39:05 -0700 Subject: [PATCH] Use major version ref of `arduino/compile-sketches` action The `arduino/compile-sketches` GitHub Actions action is used by the CI system to compile the library's example sketches for each of the supported boards in order to provide a "smoke test". Previously, due to the use of an older modified variant of Arduino CLI, a specific ref of the action had to be used. The variant of Arduino CLI has since been brought up to date, allowing it to be used with the current version of the action. Use of the major version ref will cause the workflow to use a stable version of the action while also benefit from ongoing development to the action up until such time as a new major release of an action is made, at which time we would need to evaluate whether any changes to the workflow are required by the breaking change that triggered the major release before updating the major ref (e.g., uses: `arduino/compile-sketches@v2`). --- .github/workflows/compile-examples.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index f333b0e..e526286 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -80,9 +80,7 @@ jobs: mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino" - name: Compile examples - # Due to using obsolete JSON output keys and a non-semver version, the modified "arduino_threads" version of - # Arduino CLI is not compatible with any version of `arduino/compile-sketches` after this ref, thus the pin: - uses: arduino/compile-sketches@15d79dc244a7a19b8129a83d4d34c6ba44859f01 + uses: arduino/compile-sketches@v1 with: cli-version: 'arduino_threads' fqbn: ${{ matrix.fqbn }}