Skip to content

Commit 9cf96b0

Browse files
committed
Simplify CI workflow: remove strict formatting and warning checks
1 parent 774b8a0 commit 9cf96b0

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

.github/workflows/rust-ci.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust CI
1+
name: Rust CI (Light)
22

33
on:
44
push:
@@ -7,32 +7,24 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
ci:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
13+
- name: Checkout repository
1414
uses: actions/checkout@v4
1515

16-
- name: Install Rust toolchain
17-
uses: dtolnay/rust-toolchain@stable
16+
- name: Install Rust
17+
uses: actions-rs/toolchain@v1
1818
with:
19-
components: rustfmt, clippy
19+
toolchain: stable
20+
override: true
21+
components: clippy
2022

21-
- name: Cache cargo registry
22-
uses: actions/cache@v4
23-
with:
24-
path: |
25-
~/.cargo/registry
26-
~/.cargo/git
27-
target
28-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
29-
restore-keys: ${{ runner.os }}-cargo-
30-
31-
- name: Cargo check
32-
run: cargo check --all-targets
23+
- name: Check compilation
24+
run: cargo check
3325

34-
- name: Cargo fmt (check)
35-
run: cargo fmt --all -- --check
26+
- name: Build release binary
27+
run: cargo build --release
3628

37-
- name: Cargo clippy
38-
run: cargo clippy --all-targets -- -D warnings
29+
- name: Clippy (non-blocking)
30+
run: cargo clippy --all-targets || true

0 commit comments

Comments
 (0)