Actions: add fmt checks and WASM build.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Rust
|
name: Rapier CI build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -10,10 +10,14 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
check-fmt:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Check formatting
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
build-native:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: sudo apt-get install -y cmake libxcb-composite0-dev
|
- run: sudo apt-get install -y cmake libxcb-composite0-dev
|
||||||
@@ -29,7 +33,7 @@ jobs:
|
|||||||
run: cd build/rapier2d; cargo build --verbose --features simd-stable --features parallel;
|
run: cd build/rapier2d; cargo build --verbose --features simd-stable --features parallel;
|
||||||
- name: Build rapier3d SIMD Parallel
|
- name: Build rapier3d SIMD Parallel
|
||||||
run: cd build/rapier3d; cargo build --verbose --features simd-stable --features parallel;
|
run: cd build/rapier3d; cargo build --verbose --features simd-stable --features parallel;
|
||||||
- name: Cest
|
- name: Run tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
- name: Check rapier_testbed2d
|
- name: Check rapier_testbed2d
|
||||||
run: cargo check --verbose -p rapier_testbed2d;
|
run: cargo check --verbose -p rapier_testbed2d;
|
||||||
@@ -39,3 +43,12 @@ jobs:
|
|||||||
run: cargo check -j 1 --verbose -p rapier-examples-2d;
|
run: cargo check -j 1 --verbose -p rapier-examples-2d;
|
||||||
- name: Check rapier-examples-3d
|
- name: Check rapier-examples-3d
|
||||||
run: cargo check -j 1 --verbose -p rapier-examples-3d;
|
run: cargo check -j 1 --verbose -p rapier-examples-3d;
|
||||||
|
build-wasm:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: rustup target add wasm32-unknown-unknown
|
||||||
|
- name: build rapier2d
|
||||||
|
run: cd build/rapier2d && cargo build --verbose --features wasm-bindgen --target wasm32-unknown-unknown;
|
||||||
|
- name: build rapier3d
|
||||||
|
run: cd build/rapier3d && cargo build --verbose --features wasm-bindgen --target wasm32-unknown-unknown;
|
||||||
Reference in New Issue
Block a user