-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.24 KB
/
rust_ci.yml
File metadata and controls
53 lines (43 loc) · 1.24 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
50
51
52
53
name: Rust CI
on:
push:
branches: [main]
paths:
- "apps/desktop/src-tauri/**"
pull_request:
branches: [main]
paths:
- "apps/desktop/src-tauri/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Sync submodules
run: git submodule sync --recursive && git submodule update --init --recursive
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: apps/desktop/src-tauri -> target
- name: Check
run: cargo check
working-directory: apps/desktop/src-tauri
- name: Clippy
run: cargo clippy -- -D warnings
working-directory: apps/desktop/src-tauri
- name: Test
run: cargo test
working-directory: apps/desktop/src-tauri