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 updates the GitHub Actions workflow and all the GitHub Actions used.
This was necessary because the old workflow was throwing warnings:
I also optimized the caching for PlatformIO. Now building is much faster:
I also removed some unnecessary code, like caching the python setup with the
actions/cache
action. Here we can just use the built-in cache function of theactions/setup-python
action.The
GITHUB_TOKEN
is also not needed. You would only need aGITHUB_TOKEN
if you want to create releases in other repositories.In the previous version, we had
build_output/firmware/*.bin.gz
andbuild_output/firmware/*.bin
files in the artifacts. I see no reason to do this. It just combines the disadvantages of uncompressed files and the disadvantages of compressed files.When creating a new tag, I also see no reason to have the files from
build_output/firmware
andbuild_output/release
. They are the same files, just with different filenames. So now I have changed it so that we always use the release files for artifacts.Creating a draft release with built files whenever a new tag is created remains the same.