Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 346a291

Browse files
committed
ci: add rust github actions workflow
1 parent fd0a299 commit 346a291

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/rust-ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: rust-ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'gaebal/**'
8+
- 'omx-issue-*'
9+
pull_request:
10+
11+
jobs:
12+
rust-ci:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: rust
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
with:
24+
components: rustfmt, clippy
25+
26+
- name: Cache cargo
27+
uses: Swatinem/rust-cache@v2
28+
with:
29+
workspaces: rust
30+
31+
- name: cargo fmt
32+
run: cargo fmt --all --check
33+
34+
- name: cargo clippy
35+
run: cargo clippy -p rusty-claude-cli --bin claw --no-deps -- -D warnings
36+
37+
- name: cargo test
38+
run: cargo test -p rusty-claude-cli

0 commit comments

Comments
 (0)