Skip to content

Improve github actions#384

Merged
notpeter merged 1 commit intomainfrom
ci_improvements
Mar 13, 2026
Merged

Improve github actions#384
notpeter merged 1 commit intomainfrom
ci_improvements

Conversation

@notpeter
Copy link
Contributor

  • Remove deprecated actions-rs/toolchain
  • Remove deprecated actions-rs/cargo
  • Add concurrency cancel keys
  • pin actions/checkout
  • Standardize 'run' line format
  • Only run on main/PR pushes
  • Remove unnecessary permissions: {contents: read} (this is default for push/pull request events)
  • switch rust-toolchain.toml to pin to explicit rust version instead of stable.

- Remove deprecated actions-rs/toolchain
- Remove deprecated actions-rs/cargo
- Add concurrency cancel keys
- pin `actions/checkout`
- Standardize 'run' line format
- Only run on main/PR pushes
- Remove unnecessary `permissions: {contents: read}` (this is default
  for push/pull request events)
- switch rust-toolchain.toml to pin to explicit rust version instead of
  stable.
@notpeter notpeter self-assigned this Mar 13, 2026
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
with:
command: build
args: --release --all-features
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@augustuswm

What's the purpose of running build --release and build --release --all-features separately. Is this to make sure the default features and all features both build correctly?

I've duplicated it but was just curious whether it was intentional or accidential.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right. There is a local-dev feature that we want to verify, but that feature is not enabled for a production build. I have been meaning for the longest time to make those two builds concurrent.

@notpeter notpeter merged commit c44828e into main Mar 13, 2026
5 checks passed
@notpeter notpeter deleted the ci_improvements branch March 13, 2026 19:16
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