ok/jj
1
0
Fork 0
forked from mirrors/jj

github: add a build target with all features

This should catch build errors in the `bench` feature (and in any
future non-default features).
This commit is contained in:
Martin von Zweigbergk 2023-03-29 10:22:50 -07:00 committed by Martin von Zweigbergk
parent 0e29cfca5c
commit 9d83c40b8d

View file

@ -15,9 +15,14 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust_version: [stable]
cargo_flags: [""]
include:
- os: ubuntu-latest
rust_version: "1.64"
cargo_flags: ""
- os: ubuntu-latest
rust_version: stable
cargo_flags: "--all-features"
runs-on: ${{ matrix.os }}
steps:
@ -27,9 +32,9 @@ jobs:
with:
toolchain: ${{ matrix.rust_version }}
- name: Build
run: cargo build --workspace --all-targets --verbose
run: cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
- name: Test
run: cargo test --workspace --all-targets --verbose
run: cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
env:
RUST_BACKTRACE: 1