Skip to content

add rust-toolchain.toml #290

add rust-toolchain.toml

add rust-toolchain.toml #290

Workflow file for this run

name: universal-rs
on:
push:
branches: [main]
pull_request:
paths:
- 'universal/**'
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
- uses: Swatinem/rust-cache@v2
- name: test
run: cd universal/rs && cargo test --workspace --all-features
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
- run: cd universal/rs && cargo clippy --workspace --all-targets
env:
RUSTFLAGS: -Dwarnings
docs:
name: docs
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: rust-docs
- run: cd universal/rs && cargo doc --workspace --no-deps --document-private-items
env:
RUSTDOCFLAGS: "--cfg docsrs -D warnings"
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: rustfmt
- run: cd universal/rs && cargo fmt --all --check