aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2020-09-01 18:21:11 +0200
committerGitHub <noreply@github.com>2020-09-01 18:21:11 +0200
commitfef3a367d143bddde94e4f919a341cbf8d205293 (patch)
treec66a9aa0f8a4a0b6c54f069e291fa2f12cc16ea3 /.circleci
parentcc05bad0410128b163e81e9f703ccb841f6a9a08 (diff)
parent763b9092422fd5677ffd47ec1b081951dc1c63e4 (diff)
downloadrapier-fef3a367d143bddde94e4f919a341cbf8d205293.tar.gz
rapier-fef3a367d143bddde94e4f919a341cbf8d205293.tar.bz2
rapier-fef3a367d143bddde94e4f919a341cbf8d205293.zip
Merge pull request #6 from dimforge/collider_removal
Add collider removal + fix rigid-bodies with multiple colliders
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml82
1 files changed, 82 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..c0722a9
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,82 @@
+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: apt-get update
+ - run: apt-get install -y cmake libxcb-composite0-dev
+ - 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 Parallel
+ command: cd build/rapier2d; cargo build --verbose --features simd-stable --features parallel;
+ - run:
+ name: build rapier3d SIMD Parallel
+ command: cd build/rapier3d; cargo build --verbose --features simd-stable --features parallel;
+ - run:
+ name: test
+ command: cargo test
+ - 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;
+ 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 --features wasm-bindgen --target wasm32-unknown-unknown;
+ - run:
+ name: build rapier3d
+ command: cd build/rapier3d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown;
+
+workflows:
+ version: 2
+ build:
+ jobs:
+ - check-fmt
+ - build-native:
+ requires:
+ - check-fmt
+ - build-wasm:
+ requires:
+ - check-fmt