-
-
Notifications
You must be signed in to change notification settings - Fork 104
93 lines (90 loc) · 2.94 KB
/
parry-ci-build.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: parry CI build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
check-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Clippy
run: cargo clippy
build-native:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install -y cmake libxcb-composite0-dev
- name: Build parry2d
run: cargo build --verbose -p parry2d;
- name: Build parry3d
run: cargo build --verbose -p parry3d;
- name: Build parry2d SIMD
run: cd crates/parry2d; cargo build --verbose --features simd-stable;
- name: Build parry3d SIMD
run: cd crates/parry3d; cargo build --verbose --features simd-stable;
- name: Check serialization
run: cargo check --features bytemuck-serialize,serde-serialize,rkyv-serialize;
- name: Check enhanced-determinism
run: cargo check --features enhanced-determinism
- name: Run tests
run: cargo test --features wavefront
build-wasm:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- name: build parry2d
run: cd crates/parry2d && cargo build --verbose --target wasm32-unknown-unknown;
- name: build parry3d
run: cd crates/parry3d && cargo build --verbose --target wasm32-unknown-unknown;
build-no-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install stable Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: "x86_64-unknown-linux-gnu,thumbv7em-none-eabihf"
- name: build x86_64-unknown-linux-gnu
run: cargo build --verbose --no-default-features --features required-features --target=x86_64-unknown-linux-gnu
- name: build thumbv7em-none-eabihf
run: cargo build --verbose --no-default-features --features required-features --target=thumbv7em-none-eabihf
build-doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: install stable Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: cargo doc
run: cargo doc --workspace --features bytemuck-serialize,serde-serialize,rkyv-serialize,parallel --no-deps --document-private-items
check-benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: check benchmarks
run: cargo +nightly check --benches