From 1b7e343266c6012672c57b12e27b3a31d6d27eb1 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Tue, 1 Sep 2020 17:39:49 +0200 Subject: Add CI. --- .circleci/config.yml | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 .circleci/config.yml (limited to '.circleci') 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 -- cgit From d2bc2779c9462ec94c1b55960bccb12e4f80d1c2 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Tue, 1 Sep 2020 17:55:14 +0200 Subject: CI: fix test execution. --- .circleci/config.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 315c77f..74c63ca 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,17 +33,14 @@ jobs: name: build rapier3d SIMD command: cd build/rapier3d; cargo build --verbose --features simd-stable; - run: - name: build rapier2d SIMD Paallel + name: build rapier2d SIMD Parallel command: cd build/rapier2d; cargo build --verbose --features simd-stable --features parallel; - run: - name: build rapier3d SIMD Paallel + name: build rapier3d SIMD Parallel 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; + name: test + command: cargo test - run: name: check rapier_testbed2d command: cargo check --verbose -p rapier_testbed2d; -- cgit From a1a34dada22343c93b4ce3eac404e52d592b3514 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Tue, 1 Sep 2020 17:56:28 +0200 Subject: CI: build for WASM with the wasm-bindgen feature enabled. --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 74c63ca..98524a8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -68,22 +68,22 @@ jobs: command: cargo install -f cargo-web; - run: name: build rapier2d - command: cd build/rapier2d && cargo web build --verbose --target wasm32-unknown-unknown; + 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 --target wasm32-unknown-unknown; + command: cd build/rapier3d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown; - run: name: build rapier-examples-2d - command: cd examples2d && cargo web build --verbose --target wasm32-unknown-unknown; + command: cd examples2d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown; - run: name: build rapier-examples-3d - command: cd examples3d && cargo web build --verbose --target wasm32-unknown-unknown; + command: cd examples3d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown; - run: name: build rapier_testbed2d - command: cd build/rapier_testbed2d && cargo web build --verbose --target wasm32-unknown-unknown; + command: cd build/rapier_testbed2d && cargo web build --features wasm-bindgen --verbose --target wasm32-unknown-unknown; - run: name: build rapier_testbed3d - command: cd build/rapier_testbed3d && cargo web build --verbose --target wasm32-unknown-unknown; + command: cd build/rapier_testbed3d && cargo web build --features wasm-bindgen --verbose --target wasm32-unknown-unknown; workflows: -- cgit From 221787c978e9105a7e1505c9ea702ed670f1441a Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Tue, 1 Sep 2020 18:08:53 +0200 Subject: CI: install XCB dependencies. --- .circleci/config.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 98524a8..a2414f7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,8 @@ jobs: 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; @@ -72,19 +74,6 @@ jobs: - run: name: build rapier3d command: cd build/rapier3d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown; - - run: - name: build rapier-examples-2d - command: cd examples2d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown; - - run: - name: build rapier-examples-3d - command: cd examples3d && cargo web build --verbose --features wasm-bindgen --target wasm32-unknown-unknown; - - run: - name: build rapier_testbed2d - command: cd build/rapier_testbed2d && cargo web build --features wasm-bindgen --verbose --target wasm32-unknown-unknown; - - run: - name: build rapier_testbed3d - command: cd build/rapier_testbed3d && cargo web build --features wasm-bindgen --verbose --target wasm32-unknown-unknown; - workflows: version: 2 -- cgit From 763b9092422fd5677ffd47ec1b081951dc1c63e4 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Tue, 1 Sep 2020 18:14:48 +0200 Subject: CI: remove use of the nonexistent "fluid" feature. --- .circleci/config.yml | 6 ------ 1 file changed, 6 deletions(-) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index a2414f7..c0722a9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,12 +55,6 @@ jobs: - 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: -- cgit