Skip to content

Conversation

@Guilospanck
Copy link
Contributor

Closes #206 .

Changelog:

  • Updated all actions/checkout to use latest version (v4);
  • Updated docker/setup-buildx-action from v1 to v3;
  • Updated docker/login-action from v2 to v3;
  • Updated docker/build-push-action from v4 to v6;
  • Use of caching with actions/cache@v4 and Swatinem/rust-cache@v2 to prevent excessive builds from docker and cargo;
  • Replaced manual calls to rustup by the dtolnay/rust-toolchain@nightly;
  • Removed redundant branches specification on the on configuration 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:

image

Actions from the vinteumorg/Floresta repo.

After:

image

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.

@Davidson-Souza
Copy link
Member

Nice! Thanks for working on this. ACK 9c3f8e9

@Davidson-Souza Davidson-Souza merged commit e2a62ba into vinteumorg:master Oct 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: cache dependences

2 participants