-
-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (27 loc) · 777 Bytes
/
ci.yml
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
name: CI
on: [push, pull_request]
jobs:
lint:
name: Lint & Test
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
env:
RUSTFLAGS: "-C target-cpu=native"
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }}
- run: rustup component add rustfmt clippy
- run: cargo fetch
- run: make lint
- name: cargo test build
run: cargo build --tests --release
- name: cargo test
run: cargo test --release
- name: Make desktop build
run: cd ./examples/desktop && cargo build