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

chore(ci): remove deprecated actions-rs actions #181

Merged

Conversation

marcoieni
Copy link
Member

Here's why I chose actions-rust-lang/setup-rust-toolchain:

  • automatically setup Swatinem/rust-cache@v2.
  • respects rust-toolchain file in case we add it in the future
  • it has a problem matcher
  • it has the toolchain field, which decouples the version of the action from the rust toolchain version. I.e. I think action/action@stable isn't great, because you can't pin the action commit.

toolchain: 1.80.0
override: true
Copy link
Member Author

Choose a reason for hiding this comment

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

override true is default.
profile is not present as an option.

uses: actions-rs/cargo@v1
with:
command: build
args: --all --all-targets
Copy link
Member Author

Choose a reason for hiding this comment

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

--all is deprecated in favor of --workspace

uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
Copy link
Member Author

Choose a reason for hiding this comment

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

the -- is not required anymore

@marcoieni marcoieni marked this pull request as draft November 27, 2024 14:21
@marcoieni
Copy link
Member Author

I got an error from CI.
I can reproduce with cargo +1.80.0 install [email protected] --no-default-features --features native-tls,postgres --force

but I can't with rust 1.82.0 so I think the previous action wasn't working properly.

@marcoieni
Copy link
Member Author

Another failure not detected (unused functions). I don't want to know what the old action was doing 🙈

@marcoieni marcoieni marked this pull request as ready for review November 27, 2024 14:35
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks! :)

@Kobzol Kobzol added this pull request to the merge queue Nov 28, 2024
Merged via the queue into rust-lang:main with commit 469fc0c Nov 28, 2024
2 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.

2 participants