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:
parent
0e29cfca5c
commit
9d83c40b8d
1 changed files with 7 additions and 2 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
@ -15,9 +15,14 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
rust_version: [stable]
|
rust_version: [stable]
|
||||||
|
cargo_flags: [""]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
rust_version: "1.64"
|
rust_version: "1.64"
|
||||||
|
cargo_flags: ""
|
||||||
|
- os: ubuntu-latest
|
||||||
|
rust_version: stable
|
||||||
|
cargo_flags: "--all-features"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -27,9 +32,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust_version }}
|
toolchain: ${{ matrix.rust_version }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --workspace --all-targets --verbose
|
run: cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --workspace --all-targets --verbose
|
run: cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue