-
-
Notifications
You must be signed in to change notification settings - Fork 253
111 lines (108 loc) · 4.34 KB
/
rapier-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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Rapier 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
doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Cargo doc
run: cargo doc --features parallel,simd-stable,serde-serialize,debug-render -p rapier3d -p rapier2d -p rapier3d-meshloader -p rapier3d-urdf
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: Clippy
run: cargo clippy
- name: Clippy rapier2d
run: cargo clippy -p rapier-examples-2d --features parallel,simd-stable
- name: Clippy rapier3d
run: cargo clippy -p rapier-examples-3d --features parallel,simd-stable
- name: Build rapier2d
run: cargo build --verbose -p rapier2d;
- name: Build rapier3d
run: cargo build --verbose -p rapier3d;
- name: Build rapier2d SIMD
run: cd crates/rapier2d; cargo build --verbose --features simd-stable;
- name: Build rapier3d SIMD
run: cd crates/rapier3d; cargo build --verbose --features simd-stable;
- name: Build rapier2d SIMD Parallel
run: cd crates/rapier2d; cargo build --verbose --features simd-stable --features parallel;
- name: Build rapier3d SIMD Parallel
run: cd crates/rapier3d; cargo build --verbose --features simd-stable --features parallel;
- name: Run tests
run: cargo test
- name: Check rapier_testbed2d
run: cargo check --verbose -p rapier_testbed2d;
- name: Check rapier_testbed3d
run: cargo check --verbose -p rapier_testbed3d;
- name: Check rapier_testbed2d --features parallel
run: cd crates/rapier_testbed2d; cargo check --verbose --features parallel;
- name: Check rapier_testbed3d --features parallel
run: cd crates/rapier_testbed3d; cargo check --verbose --features parallel;
- name: Check rapier_testbed2d --features enhanced-determinism
run: cd crates/rapier2d; cargo check --verbose --features enhanced-determinism;
- name: Check rapier_testbed3d --features enhanced-determinism
run: cd crates/rapier3d; cargo check --verbose --features enhanced-determinism;
- name: Check rapier-examples-2d
run: cargo check -j 1 --verbose -p rapier-examples-2d;
- name: Check rapier-examples-3d
run: cargo check -j 1 --verbose -p rapier-examples-3d;
build-wasm:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- name: build rapier2d
run: cd crates/rapier2d && cargo build --verbose --features wasm-bindgen --target wasm32-unknown-unknown;
- name: build rapier3d
run: cd crates/rapier3d && cargo build --verbose --features wasm-bindgen --target wasm32-unknown-unknown;
build-wasm-emscripten:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-emscripten
- name: build rapier2d
run: cd crates/rapier2d && cargo build --verbose --target wasm32-unknown-emscripten;
- name: build rapier3d
run: cd crates/rapier3d && cargo build --verbose --target wasm32-unknown-emscripten;
- name: build rapier2d --features simd-stable
run: cd crates/rapier2d && cargo build --verbose --target wasm32-unknown-emscripten --features simd-stable;
- name: build rapier3d --features simd-stable
run: cd crates/rapier3d && cargo build --verbose --target wasm32-unknown-emscripten --features simd-stable;
# If this fails, consider changing your text or adding something to .typos.toml
# You can find typos here: https://crates.io/crates/typos'
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check typos
uses: crate-ci/typos@v1.23.2
publish-dry-run:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: publish dry-run
run: ./publish-all.sh