diff options
| author | Sébastien Crozet <developer@crozet.re> | 2020-09-01 17:39:49 +0200 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2020-09-01 17:39:49 +0200 |
| commit | 1b7e343266c6012672c57b12e27b3a31d6d27eb1 (patch) | |
| tree | e8b3b27be60c40757a762e0e0d31d21ca4601d9b | |
| parent | fc0b3bf39484029d956055943b38bb55ab2c5791 (diff) | |
| download | rapier-1b7e343266c6012672c57b12e27b3a31d6d27eb1.tar.gz rapier-1b7e343266c6012672c57b12e27b3a31d6d27eb1.tar.bz2 rapier-1b7e343266c6012672c57b12e27b3a31d6d27eb1.zip | |
Add CI.
| -rw-r--r-- | .circleci/config.yml | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..315c77f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,102 @@ +version: 2.1 + +executors: + rust-executor: + docker: + - image: rust:latest + +jobs: + check-fmt: + executor: rust-executor + steps: + - checkout + - run: + name: install rustfmt + command: rustup component add rustfmt + - run: + name: check formatting + command: cargo fmt -- --check + build-native: + executor: rust-executor + steps: + - checkout + - run: + name: build rapier2d + command: cargo build --verbose -p rapier2d; + - run: + name: build rapier3d + command: cargo build --verbose -p rapier3d; + - run: + name: build rapier2d SIMD + command: cd build/rapier2d; cargo build --verbose --features simd-stable; + - run: + name: build rapier3d SIMD + command: cd build/rapier3d; cargo build --verbose --features simd-stable; + - run: + name: build rapier2d SIMD Paallel + command: cd build/rapier2d; cargo build --verbose --features simd-stable --features parallel; + - run: + name: build rapier3d SIMD Paallel + command: cd build/rapier3d; cargo build --verbose --features simd-stable --features parallel; + - run: + name: test rapier2d + command: cargo test --verbose -p rapier2d; + - run: + name: test rapier3d + command: cargo test --verbose -p rapier3d; + - run: + name: check rapier_testbed2d + command: cargo check --verbose -p rapier_testbed2d; + - run: + name: check rapier_testbed3d + command: cargo check --verbose -p rapier_testbed3d; + - run: + name: check rapier-examples-2d + command: cargo check -j 1 --verbose -p rapier-examples-2d; + - run: + name: check rapier-examples-3d + command: cargo check -j 1 --verbose -p rapier-examples-3d; + - run: + name: check rapier_testbed2d with fluids + command: cd build/rapier_testbed2d && cargo check --verbose --features=fluids; + - run: + name: check rapier_testbed3d with fluids + command: cd build/rapier_testbed3d && cargo check --verbose --features=fluids; + build-wasm: + executor: rust-executor + steps: + - checkout + - run: + name: install cargo-web + command: cargo install -f cargo-web; + - run: + name: build rapier2d + command: cd build/rapier2d && cargo web build --verbose --target wasm32-unknown-unknown; + - run: + name: build rapier3d + command: cd build/rapier3d && cargo web build --verbose --target wasm32-unknown-unknown; + - run: + name: build rapier-examples-2d + command: cd examples2d && cargo web build --verbose --target wasm32-unknown-unknown; + - run: + name: build rapier-examples-3d + command: cd examples3d && cargo web build --verbose --target wasm32-unknown-unknown; + - run: + name: build rapier_testbed2d + command: cd build/rapier_testbed2d && cargo web build --verbose --target wasm32-unknown-unknown; + - run: + name: build rapier_testbed3d + command: cd build/rapier_testbed3d && cargo web build --verbose --target wasm32-unknown-unknown; + + +workflows: + version: 2 + build: + jobs: + - check-fmt + - build-native: + requires: + - check-fmt + - build-wasm: + requires: + - check-fmt |
