ci/rust: Enable `cap-std-apis` in default build, add a no-feature build
Our CI was missing coverage of `cap-std-apis`.
This commit is contained in:
parent
578a0c2507
commit
ed98a7904c
|
|
@ -11,7 +11,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
CARGO_PROJECT_FEATURES: "v2021_5"
|
CARGO_PROJECT_FEATURES: "v2021_5,cap-std-apis"
|
||||||
# TODO: Automatically query this from the C side
|
# TODO: Automatically query this from the C side
|
||||||
LATEST_LIBOSTREE: "v2022_5"
|
LATEST_LIBOSTREE: "v2022_5"
|
||||||
# Minimum supported Rust version (MSRV)
|
# Minimum supported Rust version (MSRV)
|
||||||
|
|
@ -49,6 +49,17 @@ jobs:
|
||||||
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
|
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
|
||||||
- name: cargo build
|
- name: cargo build
|
||||||
run: cargo build --features=${{ env['CARGO_PROJECT_FEATURES'] }}
|
run: cargo build --features=${{ env['CARGO_PROJECT_FEATURES'] }}
|
||||||
|
build-no-features:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
|
||||||
|
- name: Build
|
||||||
|
run: cargo test --no-run
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test --verbose
|
||||||
build-git-libostree:
|
build-git-libostree:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel
|
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue