Skip to content

Improve Github Actions Setup#17

Merged
NthTensor merged 5 commits intoNthTensor:mainfrom
BD103:actions-improvements
Jun 19, 2025
Merged

Improve Github Actions Setup#17
NthTensor merged 5 commits intoNthTensor:mainfrom
BD103:actions-improvements

Conversation

@BD103
Copy link
Copy Markdown
Contributor

@BD103 BD103 commented Jun 17, 2025

This PR includes a few CI-related changes:

  1. Switched to Swatinem/rust-cache, which is one of the best Rust-specific caching actions out there. We use it over in TheBevyFlock for the CLI, linter, and bevy_new_2d template. Check out Switch to Swatinem/rust-cache TheBevyFlock/bevy_cli#402, Switch to Swatinem/rust-cache TheBevyFlock/bevy_new_2d#381, and Re-assess usage of Swatinem/rust-cache action for caching TheBevyFlock/bevy_new_2d#382 for some more fun details.
  2. Removed the explicit CARGO_TERM_COLOR: always, since dtolnay/rust-toolchain automatically configures it for us.
  3. Removed CARGO_INCREMENTAL: 0, since Swatinem/rust-cache sets it for us.
  4. Set -C debuginfo=line-tables-only for the entire workflow. This heavily reduces cache sizes by stripping out any debug info that we can't use without a debugger. Unlike debuginfo=0, however, it still includes line and column information for backtraces, meaning it's still easy to see where a panic came from!

This doesn't fix CI fully, unfortunately, as there are changes required that I don't fully understand. (Outdated doc-tests and links, mostly.) It should make it run smoother in the future, however!

Copy link
Copy Markdown
Owner

@NthTensor NthTensor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good to me. You'll just need to rebase on main, there's a conflict since I removed the loom CI action.

@NthTensor
Copy link
Copy Markdown
Owner

Oops, tried to resolve these conflicts manually and it introduced a merge conflict :/

Bear with me here, still getting the hang of maintainership. You might have to remove that most recent commit.

@BD103
Copy link
Copy Markdown
Contributor Author

BD103 commented Jun 19, 2025

You're good! I rebased, so it should be good to go :)

@NthTensor NthTensor merged commit 69b245d into NthTensor:main Jun 19, 2025
4 checks passed
@BD103 BD103 deleted the actions-improvements branch June 19, 2025 13:46
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.

2 participants