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.
Closes #206 .
Changelog:
actions/checkoutto use latest version (v4);docker/setup-buildx-actionfromv1tov3;docker/login-actionfromv2tov3;docker/build-push-actionfromv4tov6;actions/cache@v4andSwatinem/rust-cache@v2to prevent excessive builds from docker and cargo;dtolnay/rust-toolchain@nightly;onconfiguration of actions.Expected behaviour:
After the builds are cached (i.e. from second run onwards), the CI time for the actions should drop around 50%.
Before:
Actions from the vinteumorg/Floresta repo.
After:
Actions from the Guilospanck/Floresta cloned repo.
Observations
Be aware that the first time it runs will be probably slower than what the CI has right now, as it will cache the information and that will take time. Subsequent runs will use the cached builds and therefore be much faster;
The
PWD: ${{ github.workspace }}is necessary to be passed as environment because the cached build somehow loses the working directory;The caches can then be found at the /caches page.