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

Update github actions to latest versions #115

Merged
merged 5 commits into from
Jul 13, 2024

Conversation

martinling
Copy link
Member

@martinling martinling commented Jul 6, 2024

  • Update actions/checkout from v2/3 to v4
  • Update actions/upload-artifact from v2 to v4
    • Avoid conflicting artifacts by uploading only those from the stable Rust build.
  • Replace unmaintained actions-rs actions with direct use of rustup and cargo.
  • Always use the latest version of the Ubuntu runner.
  • Replace deprecated GabrielBB/xvfb-action with direct use of xvfb-run.
  • Don't try to install pkg-config on macOS; the runner has it.

@martinling martinling marked this pull request as draft July 6, 2024 19:21
@martinling
Copy link
Member Author

I was hoping this would fix the slew of deprecation warnings that show up in each of our CI runs, but it turns out most of those are due to unmaintained actions from the now-archived @actions-rs organisation.

So we need to see about replacing those too.

@miek
Copy link
Member

miek commented Jul 10, 2024

I was hoping this would fix the slew of deprecation warnings that show up in each of our CI runs, but it turns out most of those are due to unmaintained actions from the now-archived @actions-rs organisation.

So we need to see about replacing those too.

I had a look into this as well and couldn't find a solid set of replacement actions. However, it looks like rustup is included in all the runners nowadays, so I'm leaning towards just running that directly.

@martinling
Copy link
Member Author

martinling commented Jul 10, 2024

Yeah, I think actions-rs/toolchain and actions-rs/cargo can be replaced easily by direct use of rustup and cargo.

I'm not sure what to do about actions-rs/clippy-check - there are several forks/successors.

@miek
Copy link
Member

miek commented Jul 10, 2024

I was thinking just run cargo clippy directly too. It seems like the fancy annotations that the action does often fail on PRs anyway & having the normal output from clippy would be more useful.

@martinling martinling force-pushed the update-actions branch 4 times, most recently from a2990d4 to 1eab617 Compare July 13, 2024 13:57
@martinling martinling marked this pull request as ready for review July 13, 2024 14:08
@martinling
Copy link
Member Author

All done. No more warnings!

@martinling martinling requested a review from miek July 13, 2024 16:11
@miek miek merged commit fc7d276 into greatscottgadgets:main Jul 13, 2024
8 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