# yaml-language-server: $schema=https://json.schemastore.org/github-action.json name: 'Rust toolchain setup' description: 'Common setup steps for GitHub workflows for Rust projects' runs: using: composite steps: - uses: dtolnay/rust-toolchain@1.71.0 with: components: clippy, rustfmt - uses: extractions/setup-just@v1 with: just-version: '1.15.0' # optional semver specification, otherwise latest ### ### Linux setup ### - name: rustup # We need to use the nightly rust tool change to enable registry-auth / to connect to ADO feeds. if: ${{ (runner.os == 'Linux') }} run: | rustup set profile minimal rustup install shell: bash # - name: Cargo login # if: ${{ (runner.os == 'Linux') }} # run: just cargo-login-ci # shell: bash ### ### Windows setup ### - name: rustup # We need to use the nightly rust tool change to enable registry-auth / to connect to ADO feeds. if: ${{ (runner.os == 'Windows') }} run: | rustup set profile minimal rustup install shell: pwsh # - name: Cargo login # if: ${{ (runner.os == 'Windows') }} # run: just cargo-login-ci-windows # shell: pwsh