-
Notifications
You must be signed in to change notification settings - Fork 5
67 lines (61 loc) · 1.89 KB
/
Copy pathrust.yml
File metadata and controls
67 lines (61 loc) · 1.89 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Main Rust CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
cargo-build-and-test-linux:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y libglib2.0-dev libgtk-3-dev libudev-dev
- run: rustup update stable && rustup default stable
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build
- run: cargo test --workspace --exclude "*_firmware" --exclude sam_android
cargo-build-and-test-windows:
runs-on: windows-latest
continue-on-error: true
steps:
- run: rustup update stable && rustup default stable
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build
- run: cargo test --workspace --exclude "*_firmware" --exclude sam_android
cargo-build-wasm:
runs-on: ubuntu-latest
steps:
- run: rustup update stable && rustup default stable
- run: rustup target add wasm32-unknown-unknown
- run: cargo install trunk --locked
- uses: actions/checkout@v3
- uses: actions/cache@v4
with:
path: |
~/.cargo
target/
gui/target/
key: ${{ runner.os }}-trunk-${{ hashFiles('**/Cargo.lock') }}
- run: cd gui && trunk build --release
cargo-fmt:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- run: rustup update stable && rustup default stable
- uses: actions/checkout@v3
- run: cargo fmt --check