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

Odd rustup check behavior depending on precise action used #125

Open
Tomer-Eliahu opened this issue Nov 6, 2024 · 0 comments
Open

Odd rustup check behavior depending on precise action used #125

Tomer-Eliahu opened this issue Nov 6, 2024 · 0 comments

Comments

@Tomer-Eliahu
Copy link

Depending on which version of the action you use you get different rustup check results.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout #Clones the repository to the runner
      uses: actions/checkout@v4

      #uninstall stable rust (GitHub runners come with latest stable rust installed).
    - shell: bash
      run: rustup toolchain uninstall stable
      
    - name: rustup_toolchain_install
      uses: dtolnay/[email protected]

      #Run rustup check
    - shell: pwsh
      run: rustup check

yields:
image

However running:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout #Clones the repository to the runner
      uses: actions/checkout@v4

      #uninstall stable rust (GitHub runners come with latest stable rust installed).
    - shell: bash
      run: rustup toolchain uninstall stable

    - name: rustup_toolchain_install
      uses: dtolnay/rust-toolchain@master
      with:
        toolchain: 1.81

      #Run rustup check
    - shell: pwsh
      run: rustup check

yields:

image

So only using

      uses: dtolnay/rust-toolchain@master
      with:
        toolchain: 1.81

yields the expected rustup check outcome.

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

1 participant