Skip to content

Commit 2d331f0

Browse files
Maik Roland Dammclaude
andcommitted
ci: add PR cargo check workflow
Runs cargo check for both crates on every pull request: - blxcode (Tauri backend, native Linux) - blxcode-ui (Leptos frontend, wasm32-unknown-unknown) Uses dtolnay/rust-toolchain for reliable toolchain setup and actions/cache to speed up repeated runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d7157c9 commit 2d331f0

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
cargo-check:
8+
name: cargo check
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install Rust stable
15+
uses: dtolnay/rust-toolchain@stable
16+
with:
17+
targets: wasm32-unknown-unknown
18+
19+
- name: Cache cargo registry + build
20+
uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.cargo/registry/index
24+
~/.cargo/registry/cache
25+
~/.cargo/git/db
26+
target
27+
key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.lock') }}
28+
restore-keys: ${{ runner.os }}-cargo-check-
29+
30+
- name: Install Linux system deps (for cpal / Tauri)
31+
run: |
32+
sudo apt-get update -qq
33+
sudo apt-get install -y --no-install-recommends \
34+
libasound2-dev \
35+
libgtk-3-dev \
36+
libwebkit2gtk-4.1-dev \
37+
libappindicator3-dev \
38+
librsvg2-dev \
39+
patchelf
40+
41+
- name: Check backend (blxcode)
42+
run: cargo check -p blxcode
43+
44+
- name: Check frontend (blxcode-ui, WASM)
45+
run: cargo check -p blxcode-ui --target wasm32-unknown-unknown

0 commit comments

Comments
 (0)