-
-
Notifications
You must be signed in to change notification settings - Fork 91
Node.JS 12 deprecation on GitHub Actions #219
Comments
We might wait a long time here, given that this project has been unmaintained for almost 2 years: #216 |
This is to fix warnings that pop up in Github Actions due to actions-rs/cargo and actions-rs/toolchain not being updated to the Node 16. actions-rs/cargo - [Node.js 12 actions are deprecated. Please use Node.js 16](actions-rs/cargo#216) actions-rs/toolchain - [Node.JS 12 deprecation on GitHub Actions](actions-rs/toolchain#219)
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
actions-rs is currently inactive and has an issue like actions-rs/toolchain#219
Non interactive install for anyone who only needs stable rust. - name: Install Rust (Stable)
run:
curl https://sh.rustup.rs -sSf | sh -s -- -y |
Unfortunate the project seems abandoned, was using it daily. |
* ci.yml to use Node16 * `actions/checkout@v3` * `actions/setup-python@v4` * `actions-rs` is unmaintained: * actions-rs/toolchain#219 * actions-rs/cargo#222 * Library Checker: Rust 1.60 * https://judge.yosupo.jp/help * clippy allow renamed-and-removed-lints * https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#renamed-and-removed-lints * `cargo`, `rustup` execute from `$PATH` * uses dtolnay/rust-toolchain@master
Do you think this guy is dead? Is there a way to add other people to the project to maintain it without him given that he has been MIA for 2+ years? This action will cease to work in a couple of months and that would be a real shame given it's wide use. |
@svartalf are you OK? |
The previous step used actions-rs which relies upon deprecated Node.js 12 actions. See: actions-rs/toolchain#219
Now that Node 12 is going to start breaking, and this action is dead, I've created a new one: https://github.com/moonrepo/setup-rust |
May I ask what this action (and your new action) is for when the GitHub runners already include |
The GitHub runners include rustup and a recent stable Rust. We only need to add the necessary target and we’re good to go. This removes a lot of warnings because the action used an outdated GitHub API: actions-rs/toolchain#219
* Remove unnecessary jobs names They are inconsistent with the rest of the jobs and they overflow the horizontal space in the GitHub UI. * Remove unnecessary toolchain action The GitHub runners include rustup and a recent stable Rust. We only need to add the necessary target and we’re good to go. This removes a lot of warnings because the action used an outdated GitHub API: actions-rs/toolchain#219 * Simplify job name The job is testing a single translation, so it should be singular. * Test English source with translations This simplifies the workflow a little and ensures that we get artifacts uploaded of the English version for every PR. * Avoid shell command chain GitHub actions supports setting the working directory directly. * Upload only the book artifact Right now, the artifacts all contain the same two top-level folders: html/ and exerciser/. The former is what we actually deploy, the second is a side-effect of the exerciser plugin. With this change, we only upload the HTML and we ensure the zip file for the xx language has a top-level comprehensive-rust-xx/ folder. This makes it much nicer to use the generated artifacts.
@mgeisler Just look at the readme. |
Thanks, I was expecting it to simply replace this action, but I see now that it also includes support for caching and installing binaries. That will allow me to further simplify my jobs, thanks. |
226: Fix warnings in CI r=Aadamandersson a=Aadamandersson This fixes the warnings in our CI. We are currently using [action-rs/toolchain](https://github.com/actions-rs/toolchain) to install the Rust toolchain in Github Actions. But as it seems to be unmaintained (see actions-rs/toolchain#216) and needs to be replaced to fix some of the warnings (see actions-rs/toolchain#219) I have replaced it with [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain), which looks like a suitable replacement. Co-authored-by: Adam Andersson <adam.m.andersson@gmail.com>
226: Fix warnings in CI r=Aadamandersson a=Aadamandersson This fixes the warnings in our CI. We are currently using [action-rs/toolchain](https://github.com/actions-rs/toolchain) to install the Rust toolchain in Github Actions. But as it seems to be unmaintained (see actions-rs/toolchain#216) and needs to be replaced to fix some of the warnings (see actions-rs/toolchain#219) I have replaced it with [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain), which looks like a suitable replacement. Co-authored-by: Adam Andersson <adam.m.andersson@gmail.com>
226: Fix warnings in CI r=Aadamandersson a=Aadamandersson This fixes the warnings in our CI. We are currently using [action-rs/toolchain](https://github.com/actions-rs/toolchain) to install the Rust toolchain in Github Actions. But as it seems to be unmaintained (see actions-rs/toolchain#216) and needs to be replaced to fix some of the warnings (see actions-rs/toolchain#219) I have replaced it with [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain), which looks like a suitable replacement. Co-authored-by: Adam Andersson <adam.m.andersson@gmail.com>
Before this change, GitHub Actions would warn that actions-rs/toolchain@v1 uses deprecated functionality: The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ and: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Unfortunately, the development of this action is abandoned (the repo has not received any updates in the last 3 years and the author is unresponsive: actions-rs/toolchain#219). Fix the warning by manually invoking rustup commands since it turns out that GitHub Actions now bundle it in their runners by default.
Before this change, GitHub Actions would warn that actions-rs/toolchain@v1 uses deprecated functionality: The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ and: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Unfortunately, the development of this action is abandoned (the repo has not received any updates in the last 3 years and the author is unresponsive: actions-rs/toolchain#219). Fix the warning by manually invoking rustup commands since it turns out that GitHub Actions now bundle it in their runners by default.
* Remove unnecessary jobs names They are inconsistent with the rest of the jobs and they overflow the horizontal space in the GitHub UI. * Remove unnecessary toolchain action The GitHub runners include rustup and a recent stable Rust. We only need to add the necessary target and we’re good to go. This removes a lot of warnings because the action used an outdated GitHub API: actions-rs/toolchain#219 * Simplify job name The job is testing a single translation, so it should be singular. * Test English source with translations This simplifies the workflow a little and ensures that we get artifacts uploaded of the English version for every PR. * Avoid shell command chain GitHub actions supports setting the working directory directly. * Upload only the book artifact Right now, the artifacts all contain the same two top-level folders: html/ and exerciser/. The former is what we actually deploy, the second is a side-effect of the exerciser plugin. With this change, we only upload the HTML and we ensure the zip file for the xx language has a top-level comprehensive-rust-xx/ folder. This makes it much nicer to use the generated artifacts.
How can I replace this one?
|
More info here. |
thanks @Finomnis does that install rust? I though that it install the toolchain |
@istellino-chub What's the difference between 'Rust' and the 'Rust toolchain'? What |
@Finomnis And what about the
|
I'm not even sure what |
This PR supersedes actions-rs#220 and actions-rs#222 by applying both fixes at once Fixes actions-rs#219 Fixes actions-rs#221 You can now use this action (and cargo) without deprecations by using a workflow similar to this: on: [push] name: build jobs: check: name: Rust project runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install latest nightly uses: ThexXTURBOXx/toolchain@master with: toolchain: nightly override: true components: rustfmt, clippy # `cargo check` command here will use installed `nightly` # as it is set as an "override" for current directory - name: Run cargo check uses: richb-hanover/cargo@master with: command: check
Do the checklist before filing an issue:
actions-rs
Actions?If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.saobby.my.eu.orgmunity
Description
GitHub Action hosted runner is reporting the following warning.
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions-rs/toolchain
Workflow code
Action output
See above.
Expected behavior
Migrate actions-rs/toolchain to Node.JS 16.
Additional context
N/A.
The text was updated successfully, but these errors were encountered: