Bump version to 0.6.0-dev (#925) #2178
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: --deny warnings -C debuginfo=line-tables-only | |
| RUSTDOCFLAGS: --deny warnings | |
| jobs: | |
| check: | |
| name: Check Minimal Features | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| cache-all-crates: true | |
| shared-key: lints | |
| - name: Install Linux dependencies | |
| run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev libx264-164 libx264-dev | |
| - name: Run cargo check | |
| run: cargo check --locked --all-targets --no-default-features --features 2d,3d,f32 | |
| docs: | |
| name: Check Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| cache-all-crates: true | |
| shared-key: lints | |
| - name: Install Linux dependencies | |
| run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev libx264-164 libx264-dev | |
| - name: Run cargo doc | |
| run: cargo doc --locked --workspace --no-deps --document-private-items --keep-going | |
| test: | |
| name: Test Suite | |
| strategy: | |
| matrix: | |
| os: [windows-latest, macos-latest, ubuntu-latest] | |
| env: | |
| RUSTFLAGS: --deny warnings -C debuginfo=line-tables-only -Zthreads=0 | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: llvm-tools-preview | |
| - uses: cargo-bins/cargo-binstall@main | |
| - name: Install Linux dependencies | |
| run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev libx264-164 libx264-dev | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| - name: Install nextest | |
| run: cargo binstall cargo-nextest --force | |
| - name: Install LLD | |
| run: cargo binstall cargo-binutils --force | |
| - name: Activate CI cargo config | |
| run: mv .cargo/config_ci.toml .cargo/config.toml | |
| - name: set LD_LIBRARY_PATH on unix | |
| id: ld-unix | |
| run: | | |
| # Linux | |
| echo "LD_LIBRARY_PATH=$(rustc --print target-libdir)" >> "$GITHUB_ENV" | |
| # macOS | |
| echo "DYLD_LIBRARY_PATH=$(rustc --print target-libdir)" >> "$GITHUB_ENV" | |
| echo "libdir=$(rustc --print target-libdir)" >> "$GITHUB_OUTPUT" | |
| if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }} | |
| - name: set LD_LIBRARY_PATH on Windows | |
| id: ld-windows | |
| run: | | |
| $libDir = (rustc --print target-libdir) | |
| Add-Content -Path $env:GITHUB_ENV -Value "RUST_LIB_DIR=$libDir" | |
| Add-Content -Path $env:GITHUB_PATH -Value "$libDir" | |
| "libdir=$libDir" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append | |
| shell: pwsh | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| - name: Restore Rust cache on Unix | |
| uses: Swatinem/rust-cache@v2 | |
| if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }} | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| cache-directories: ${{ steps.ld-unix.outputs.libdir }} | |
| cache-all-crates: true | |
| - name: Restore Rust cache on Windows | |
| uses: Swatinem/rust-cache@v2 | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| cache-directories: ${{ steps.ld-windows.outputs.libdir }} | |
| cache-all-crates: true | |
| - name: Run cargo test | |
| run: cargo nextest run --locked --no-default-features --lib --bins --examples --no-fail-fast --features enhanced-determinism,parallel,collider-from-mesh,serialize,debug-plugin,xpbd_joints,avian2d/2d,avian3d/3d,avian2d/f64,avian3d/f64,default-collider,parry-f64,bevy_scene,bevy_picking,diagnostic_ui,bevy/dynamic_linking | |
| - name: Run doc tests | |
| run: cargo test --locked --doc --no-default-features --features enhanced-determinism,parallel,collider-from-mesh,serialize,debug-plugin,xpbd_joints,avian2d/2d,avian3d/3d,avian2d/f64,avian3d/f64,default-collider,parry-f64,bevy_scene,bevy_picking,diagnostic_ui,bevy/dynamic_linking | |
| lints: | |
| name: Lints | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| cache-all-crates: true | |
| shared-key: lints | |
| - name: Install Linux dependencies | |
| run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev libx264-164 libx264-dev | |
| - name: Run cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: Run cargo clippy | |
| run: cargo clippy --locked --all-targets |