aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2024-07-12 16:29:22 +0200
committerGitHub <noreply@github.com>2024-07-12 16:29:22 +0200
commit01dd2001525850ef0d66374c69e98e1560cb6421 (patch)
tree5901b3c00d9ffc53a9af34e0023241eff256c8bc /.github
parent87ada34008f4a1a313ccf8c3040040bab4f10e69 (diff)
downloadrapier-01dd2001525850ef0d66374c69e98e1560cb6421.tar.gz
rapier-01dd2001525850ef0d66374c69e98e1560cb6421.tar.bz2
rapier-01dd2001525850ef0d66374c69e98e1560cb6421.zip
ci: cargo doc step (#671)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rapier-ci-build.yml86
1 files changed, 47 insertions, 39 deletions
diff --git a/.github/workflows/rapier-ci-build.yml b/.github/workflows/rapier-ci-build.yml
index c38a1a5..984bb86 100644
--- a/.github/workflows/rapier-ci-build.yml
+++ b/.github/workflows/rapier-ci-build.yml
@@ -2,9 +2,9 @@ name: Rapier CI build
on:
push:
- branches: [ master ]
+ branches: [master]
pull_request:
- branches: [ master ]
+ branches: [master]
env:
CARGO_TERM_COLOR: always
@@ -13,48 +13,56 @@ jobs:
check-fmt:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - name: Check formatting
- run: cargo fmt -- --check
+ - 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 -p rapier3d -p rapier2d -p rapier3d-stl -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-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;
+ - 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-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: