-
-
Notifications
You must be signed in to change notification settings - Fork 92
Support new TOML format for rust-toolchain #126
Comments
In this case we should probably try to parse |
Updating
The full workflow execution is at https://github.com/tock/libtock-rs/pull/263/checks?check_run_id=1484520959 EDIT: I forgot to say this, but it appears that this action is trying to pass the contents of |
Rustup will not automatically install the correct targets, so we no longer need the `rustup target add` steps. After this, the `actions-rs/toolchain` step doesn't give us much, and is currently broken (actions-rs/toolchain#126), so I removed that step as well.
I'm not sure that would work on MacOS. I just found that on |
Yes, I think that's the case, see Lines 28 to 35 in 553f0f7
Lines 44 to 45 in 553f0f7
|
Rustup will not automatically install the correct targets, so we no longer need the `rustup target add` steps. After this, the `actions-rs/toolchain` step doesn't give us much, and is currently broken (actions-rs/toolchain#126), so I removed that step as well.
Hint for people who got bitten by this: just run Yes, it's retarded workaround/name for a command but better than waiting eternity for someone to fix this. |
Your hint helped me, thanks @Kixunil. To make the hint more explicit: If you're using a toml - name: Setup rust toolchain
uses: actions-rs/toolchain@v1 with - name: Setup rust toolchain
run: rustup show |
Hi there, I can easily solve this, but I'm stuck because of #163 Any ehlp appreciated. The just-run-rustup-show trick is great iff you already have rustup installed on your ci machine. Any tips for that? |
If you're using shared runners, it's already there and you just run the command. If you're using self-hosted runners, you control what's installed on the image. So refer to how GitHub sets up Rust. |
What is missing to support this? I'm willing to make the contribution, just not sure where to start |
Please merge: #166 |
* Initial actions setup * Removed toolchain option * TOML file not supported yet by rust-actions See actions-rs/toolchain#126 * Downgraded toolchain file to pre-rustup 1.23.0
rust-toolchain does not support the new rust-toolchain.toml format actions-rs/toolchain#126
* chore: ignore pyenv file * fix(build): force use of nightly toolchain * ci: simplify pipeline * ci: use legacy format for rust-toolchain rust-toolchain does not support the new rust-toolchain.toml format actions-rs/toolchain#126
It doesn't support rust-toolchain.toml per actions-rs/toolchain#126 and it isn't receiving new updates per actions-rs/toolchain#216 .
If anyone else is hitting this, I found that:
|
Work around actions-rs/toolchain#126
Using now rustup show instead of the dedicated action-rs/toolchain github action. This allows using the .toml extension. Thanks @atifaziz for pointing out actions-rs/toolchain#126 (comment)
…/issues/126`) Signed-off-by: threadexio <[email protected]>
I found that project was also nice and minimal, but didn't want to support the rust-toolchain.toml file so I created a fork of it that is specifically for this functionality for anyone else who needs it: https://github.com/dsherret/rust-toolchain-file |
Default cargo installation in GitHub Actions already honors toolchain file, you don't even need an action to install anything, it "just works" automatically and will download toolchains and specified components if they are not yet available. Simply remove |
@nazar-pc you're right! I just tested it out switching between versions and it seems to work. I wish I had known that earlier. Thanks! Edit: Huh, one drawback is it doesn't do other setup stuff like setup colours and enable the new sparse registry protocol like what |
For colors you need to set |
@nazar-pc yeah, but it's more verbose compared to a single line and doing this helps keep multiple repos in sync. I like the defaults |
Makes it easier to update Rust toolchain. Mirrors dfinity/cycles-ledger#20 `@actions-rs/toolchain` does not support `rust-toolchain.toml` so I removed that action and replaced it with `rustup show` as per this comment: actions-rs/toolchain#126 (comment)
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.community
Motivation
As announced with Rustup 1.23.0 and documented here, there is a new TOML syntax for the
rust-toolchain
file which should be supported by this action.Workflow Failure
Additionally using the TOML syntax without specifying the
toolchain
input will cause the workflow to fail.The text was updated successfully, but these errors were encountered: