Skip to content

Make rust version a single workflow variable #310

Description

@NickLarsenNZ

It would be better to change the version in one place, instead across many steps.

Example (stripped for brevity and clarity):

env:
  RUST_TOOLCHAIN_VERSION: "1.75.0"

jobs:
  run_clippy:
    steps:
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
          components: clippy

operator-rs already does so:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions