Debian Codegraph @

.github/workflows/ci.yaml

raw symbols SCIP
1 name: Build
2
3 on: [push, pull_request]
4
5 env:
6 CARGO_TERM_COLOR: always
7
8 jobs:
9 build:
10 runs-on: ${{ matrix.os }}
11 env:
12 RUST_BACKTRACE: 1
13 strategy:
14 matrix:
15 build: [ubuntu64, win64]
16 include:
17 - build: ubuntu64
18 os: ubuntu-latest
19 host_target: x86_64-unknown-linux-gnu
20 - build: win64
21 os: windows-latest
22 host_target: x86_64-pc-windows-msvc
23 steps:
24 - uses: actions/checkout@v4
25 with:
26 lfs: 'true'
27
28 - name: Install rust toolchain
29 uses: dtolnay/rust-toolchain@stable
30 with:
31 targets: ${{ matrix.host_target }}
32
33 - name: build
34 run: cargo build --target=${{ matrix.host_target }} --release
35
36 - name: Cargo test
37 run: cargo test --release
38
39 fmt:
40 name: check formatting
41 runs-on: ubuntu-latest
42 steps:
43 - uses: actions/checkout@v4
44 - name: Install rust toolchain
45 uses: dtolnay/rust-toolchain@stable
46 with:
47 components: rustfmt, clippy
48
49 - name: Cargo fmt
50 run: cargo fmt --all -- --check
51
52 - name: Cargo clippy
53 run: cargo clippy -- -D warnings