Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: Remove actions-rs/toolchain which is end-of-life #1874

Merged
merged 8 commits into from
Jan 25, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jan 25, 2024

Fixes: #1873

Use the version of cargo that is pre-installed in the GHA base image.

uses: actions-rs/toolchain@v1
with:
profile: minimal
target: ${{ matrix.target }}
Copy link
Contributor Author

@cclauss cclauss Jan 25, 2024

Choose a reason for hiding this comment

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

This line bugs me... How can we communicate the profile and target to the Rust Toolchain?

Copy link
Owner

Choose a reason for hiding this comment

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

Is rustup installed on the base image? If so, can we use rustup to install the correct toolchain?

Copy link
Contributor Author

@cclauss cclauss Jan 25, 2024

Choose a reason for hiding this comment

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

Yes, it is. See the last line of #1873. I know little about Rust tooling so you probably need to take over this pull request to get the release job finished.

It is cool to see that the ci job just works.

@cclauss cclauss marked this pull request as ready for review January 25, 2024 01:15
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
override: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

How can we communicate override to the Rust Toolchain?

Copy link
Owner

Choose a reason for hiding this comment

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

The override part? I'm not 100% sure it's being used, so we could just see if it works without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ci job is green ✅

@casey casey merged commit 77e7cfe into casey:master Jan 25, 2024
5 checks passed
@casey
Copy link
Owner

casey commented Jan 25, 2024

Installing the right toolchain in bin/package turned out to be super easy. Great PR! Removing a dependency is always awesome, and this should make our CI job faster.

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.

GitHub Actions: actions-rs/toolchain is end-of-life and should be replaced
2 participants