Skip to content

GitHub Action for installing Installs a Rust toolchain from a toolchain file (rust-toolchain.toml)

License

Notifications You must be signed in to change notification settings

mkroening/rust-toolchain-toml

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Install rust-toolchain.toml

This GitHub action installs the Rust toolchain specified in the specified toolchain file (rust-toolchain.toml) using dtolnay/rust-toolchain and yq.

Usage

- uses: mkroening/rust-toolchain-toml@main
  with:
    # Path to the toolchain file.
    # Default: rust-toolchain.toml
    toolchain-file: ''

Example workflow

name: test suite
on: [push, pull_request]

jobs:
  test:
    name: cargo test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: mkroening/rust-toolchain-toml@main
      - run: cargo test --all-features

License

The scripts and documentation in this project are released under the MIT License.

About

GitHub Action for installing Installs a Rust toolchain from a toolchain file (rust-toolchain.toml)

Topics

Resources

License

Stars

Watchers

Forks