diff --git a/.github/workflows/nalgebra-ci-build.yml b/.github/workflows/nalgebra-ci-build.yml index 97b42184e..ff6bff005 100644 --- a/.github/workflows/nalgebra-ci-build.yml +++ b/.github/workflows/nalgebra-ci-build.yml @@ -13,37 +13,37 @@ jobs: check-fmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Check formatting - run: cargo fmt -- --check + - uses: actions/checkout@v2 + - name: Check formatting + run: cargo fmt -- --check clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install clippy - run: rustup component add clippy - - name: Run clippy - run: cargo clippy + - uses: actions/checkout@v2 + - name: Install clippy + run: rustup component add clippy + - name: Run clippy + run: cargo clippy build-nalgebra: runs-on: ubuntu-latest -# env: -# RUSTFLAGS: -D warnings + # env: + # RUSTFLAGS: -D warnings steps: - - uses: actions/checkout@v2 - - name: Build --no-default-feature - run: cargo build --no-default-features; - - name: Build (default features) - run: cargo build; - - name: Build --features serde-serialize - run: cargo build --features serde-serialize - - name: Build nalgebra-lapack - run: cd nalgebra-lapack; cargo build; - - name: Build nalgebra-sparse --no-default-features - run: cd nalgebra-sparse; cargo build --no-default-features; - - name: Build nalgebra-sparse (default features) - run: cd nalgebra-sparse; cargo build; - - name: Build nalgebra-sparse --all-features - run: cd nalgebra-sparse; cargo build --all-features; + - uses: actions/checkout@v2 + - name: Build --no-default-feature + run: cargo build --no-default-features; + - name: Build (default features) + run: cargo build; + - name: Build --features serde-serialize + run: cargo build --features serde-serialize + - name: Build nalgebra-lapack + run: cd nalgebra-lapack; cargo build; + - name: Build nalgebra-sparse --no-default-features + run: cd nalgebra-sparse; cargo build --no-default-features; + - name: Build nalgebra-sparse (default features) + run: cd nalgebra-sparse; cargo build; + - name: Build nalgebra-sparse --all-features + run: cd nalgebra-sparse; cargo build --all-features; # Run this on it’s own job because it alone takes a lot of time. # So it’s best to let it run in parallel to the other jobs. build-nalgebra-all-features: @@ -54,9 +54,18 @@ jobs: - run: cargo build -p nalgebra-glm --all-features; test-nalgebra: runs-on: ubuntu-latest -# env: -# RUSTFLAGS: -D warnings + # env: + # RUSTFLAGS: -D warnings steps: + # Tests are run with a specific version of the compiler to avoid + # trybuild errors when a new compiler version is out. This can be + # bumped as needed after running the tests with TRYBUILD=overwrite + # to re-generate the error reference. + - name: Select rustc version + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.79.0 + override: true - uses: actions/checkout@v2 - name: test run: cargo test --features arbitrary,rand,serde-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests,rkyv-safe-deser,rayon; @@ -85,8 +94,8 @@ jobs: run: cargo test -p nalgebra-macros build-wasm: runs-on: ubuntu-latest -# env: -# RUSTFLAGS: -D warnings + # env: + # RUSTFLAGS: -D warnings steps: - uses: actions/checkout@v2 - run: rustup target add wasm32-unknown-unknown @@ -121,6 +130,6 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Generate documentation - run: cargo doc + - uses: actions/checkout@v2 + - name: Generate documentation + run: cargo doc