0.2.1-beta.1 • Published 1 year ago

@rs-workspace/rust-toolchain v0.2.1-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

GitHub Super-Linter CI Check dist/ CodeQL Coverage

Rust Toolchain (GitHub Action)

GitHub actions for installing rust toolchain

Example Workflow

name: test suite
on: [push, pull_request]

jobs:
  test:
    name: cargo test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: rs-workflow/rust-toolchain@main
      - run: cargo test --all-features

This installs the stable version of rust with default profile. To customize this you need to pass the inputs:

Inputs

All inputs are optional

NameDescription
toolchainRust toolchain specifier e.g. stable, nightly, beta, nightly-2024-10-12, etc. Read More
profileThe group of components to be installed. Read More
componentsThe list of space seperated rust components. Read More
name: test suite
on: [push, pull_request]

jobs:
  test:
    name: cargo test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: rs-workflow/rust-toolchain@main
        with:
          toolchain: nightly-2024-10-12 # Optional; Defaults to stable
          profile: minimal # Optional; Defaults to default
          components: miri # Optional
      - run: cargo test --all-features

For another example see ci.yml

Outputs

No outputs are given when running this action

Summary

A Summary table is created with the version of rustc and rustup

License

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

0.2.1-beta.1

1 year ago

0.2.1

1 year ago