Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
automation-lab
public
Star
0
Overview
Code
Issues
1
Pull requests
Agents
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
Try the Rust toolchain action
syntaqx
committed
9d ago
Parent
0c5acde
Browse files
ca04be33bb5e
1
file
+23
−0
0/1 viewed
Collapse all
Unified
Split
.g1t/workflows/rust.yml
+23
−0
View
Blame
Viewed
1
+
name: Rust toolchain
2
+
on:
3
+
workflow_dispatch:
4
+
jobs:
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
Merged in
Add a clamp function to math.js
#24
written by g1t
Why it was written