Skip to content
23 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Try the Rust toolchain action1name: Rust toolchain
2on:
3 workflow_dispatch:
4jobs:
5 check:
6 runs-on: ubuntu-latest
7 steps:
8 - uses: dtolnay/rust-toolchain@stable
9 with:
10 components: rustfmt, clippy
11 - uses: actions/cache@v6
12 with:
13 path: |
14 ~/.cargo/registry
15 ~/.cargo/git
16 key: cargo-${{ runner.os }}-demo
17 - run: |
18 cargo new --quiet /tmp/demo
19 cd /tmp/demo
20 cargo fmt --check
21 cargo clippy --quiet -- -D warnings
22 cargo test --quiet
23 rustc --version