-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (45 loc) · 1.16 KB
/
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
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
name: Test Suite
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-suite:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
rust_version: [stable]
build_flags: ["", "--features double-precision", "--features object-layer-u32", "--all-features"]
exclude:
- os: ubuntu-latest
runs-on: ${{ matrix.os }}
name: Tests - ${{ matrix.os }} ${{ matrix.rust_version }} ${{ matrix.build_flags }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_version }}
- uses: swatinem/rust-cache@v2
- name: Rust Tests
run: |
cargo test --verbose --workspace ${{ matrix.build_flags }}
rustfmt:
runs-on: ubuntu-latest
name: Code Formatting
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- name: Rustfmt
run: |
cargo fmt --all --check