Pin to last compatible action version in sketch compile workflow #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This library requires a modified "arduino_threads" variant of Arduino CLI. Since the time that variant was made, there was a breaking change to the key names of Arduino CLI's JSON format output (arduino/arduino-cli#1223). The
arduino/compile-sketches
action uses some of the affected keys and so had to be updated to use the new keys (arduino/compile-sketches#20). A translation system was put in place to provide backwards compatibility. However, this translation system requires that the Arduino CLI version specified via the action'scli-version
input be semver-compliant so that it can determine whether it came before or after the breaking change.The "arduino_threads" variant of Arduino CLI has the fatal combination of the old keys and non-semver version, meaning it is not compatible with versions of the
arduino/compile-sketches
action that came after the fix for the key name changes, which results in a spurious failure of the workflow runs.For example:
https://github.com/bcmi-labs/Arduino_Threads/pull/19/checks?check_run_id=3674417845#step:6:198
The workaround is to pin version of the
arduino/compile-sketches
action used in the "Compile Examples" workflow to thelast compatible ref. Fortunately, that is quite recent in the action's revision history and none of the changes that came since should be relevant for this application.