Install the Rust toolchain via GitHub Action
masterUse dtolnay/rust-toolchain to install a Rust toolchain using rustup in your GitHub Actions workflows. The action can automatically select a toolchain based on the version tag (e.g., @stable, @nightly, or @1.89.0) used in the uses statement.
name: test suite
on: [push, pull_request]
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features