Concise GitHub Action for installing a Rust toolchain
Find a file
2020-05-02 13:41:32 -07:00
.githooks Fix ts file identification in pre-commit hook 2020-05-02 13:12:51 -07:00
.github/workflows Release v1.0.6 2020-03-24 16:27:19 +03:00
__tests__ Update metadata to refer to fork 2020-05-02 12:20:00 -07:00
dist npm run build 2020-05-02 12:33:02 -07:00
scripts Add script to update revs 2020-05-02 13:41:32 -07:00
src Release v1.0.6 2020-03-24 16:27:19 +03:00
types/mock-env Release v1.0.6 2020-03-24 16:27:19 +03:00
.editorconfig Release v1.0.0 2019-09-15 12:24:13 +03:00
.eslintrc.json Release v1.0.6 2020-03-24 16:27:19 +03:00
.gitignore Allow to override toolchain from rust-toolchain file (#35) 2020-01-13 16:31:26 +03:00
.npmrc Profiles and components support 2019-10-19 13:28:57 +03:00
action.yml Add script to update revs 2020-05-02 13:41:32 -07:00
CHANGELOG.md Freeze changelog for v1.0.6 release 2020-03-24 16:29:33 +03:00
jest.config.json Release v1.0.6 2020-03-24 16:27:19 +03:00
LICENSE Initial version 2019-09-12 16:44:29 +03:00
package-lock.json Release v1.0.6 2020-03-24 16:27:19 +03:00
package.json Update metadata to refer to fork 2020-05-02 12:20:00 -07:00
README.md Write readme 2020-05-02 13:02:44 -07:00
tsconfig.eslint.json Release v1.0.6 2020-03-24 16:27:19 +03:00
tsconfig.json Release v1.0.6 2020-03-24 16:27:19 +03:00

Install Rust Toolchain

This GitHub Action installs a Rust toolchain using rustup. It is a fork of actions-rs/toolchain designed for more concise usage.

Example workflow

name: test suite
on: [push, pull_request]

jobs:
  test:
    name: cargo test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: dtolnay/rust-toolchain@stable
      - run: cargo test

The selection of Rust toolchain is made based on the particular @rev of this Action being requested. For example "dtolnay/rust-toolchain@nightly" pulls in the nightly Rust toolchain, while "dtolnay/rust-toolchain@1.42.0" pulls in 1.42.0.

Inputs

All inputs are optional.

Name Description
toolchain Rustup toolchain specifier, ex. stable, nightly, 1.42.0. Important: the default is to match the @rev as described above.
target Additional target support to install, ex. wasm32-unknown-unknown
components Comma-separated string of additional components to install, ex. clippy, rustfmt

License

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