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

ci(.github): discontinue use of unmaintained actions #1697

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

vdice
Copy link
Member

@vdice vdice commented Aug 15, 2023

This update was motivated by the slew of deprecation warnings spotted in recent CI runs (for example, this build workflow run and this release workflow run). It turns out they all stem from the actions-rs/toolchain and actions-rs/cargo actions, which unfortunately no longer appear to be maintained (ref actions-rs/toolchain#216 and actions-rs/cargo#216).

While there may be alternative actions (such as https://github.com/dtolnay/rust-toolchain), I propose we just invoke the rustup and cargo commands directly, seeing as how our use case is fairly straightforward.

Example runs from this changeset: build and release.

Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
Signed-off-by: Vaughn Dice <vaughn.dice@fermyon.com>
target: ${{ matrix.config.target }}
shell: bash
run: |
rustup toolchain install ${{ env.RUST_VERSION }}
Copy link
Member

Choose a reason for hiding this comment

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

for my own curiosity: how do you have access to the rustup binary here? does it come standard with the os?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, Rust tools like rustup and cargo come pre-installed in the GitHub runners.

@vdice vdice merged commit 45b14fb into fermyon:main Aug 16, 2023
9 checks passed
@vdice vdice deleted the ci/rm-rust-toolchain-action branch August 16, 2023 22:14
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.

None yet

2 participants