-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.07 KB
/
sync.yml
File metadata and controls
49 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Sync
on:
pull_request:
branches:
- master
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libudev-dev
- name: Install dependencies
run: bun install
- name: Sync version
run: bun scripts/syncVersion.ts
- name: Check version sync
run: |
if ! git diff --exit-code Cargo.toml; then
echo "Error: Cargo.toml version is out of sync with package.json"
echo "Run 'bun scripts/syncVersion.ts' to fix"
exit 1
fi
- name: Check formatting
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test
- name: Build
run: cargo build --release