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

How can I specify the rust toolchain? #1

Open
nathan-at-least opened this issue May 26, 2023 · 1 comment
Open

How can I specify the rust toolchain? #1

nathan-at-least opened this issue May 26, 2023 · 1 comment

Comments

@nathan-at-least
Copy link

I have hit this nightly-specific error while installing mdbook, so the simplest work-around I would like to try is installing mdbook with cargo stable.

I didn't see any input option for selecting a toolchain. I tried setting the ambient default in a step prior to using this action, ala:

steps:                                                                                                                         
  - name: Select rust stable                                                                                                                                                   
    run: rustup default stable                                                                                                                                                 
  - uses: taiki-e/cache-cargo-install-action@v1                                                                                                                                
    with:                                                                                                                                                                      
      tool: mdbook@0.4.19

-however I run into the same error.

Questions:

  • Is there a way to verify which toolchain is used in the action?
  • Is there a way to specify the stable toolchain?
@taiki-e
Copy link
Owner

taiki-e commented May 27, 2023

This action uses the current default toolchain. So, cargo -vV and rustc -vV should show the toolchain currently in use.

Also, (as documented) it is recommended to use install-action instead of this action for tools that are supported by install-action, such as mdbook. It is more robust against such compiler bugs.

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

No branches or pull requests

2 participants