From ed98a7904c9536984567412daf9cc517555a81e4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 23 Jun 2022 14:43:55 -0400 Subject: [PATCH] ci/rust: Enable `cap-std-apis` in default build, add a no-feature build Our CI was missing coverage of `cap-std-apis`. --- .github/workflows/rust.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b9c972e2..74e395ee 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,7 +11,7 @@ on: env: 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 LATEST_LIBOSTREE: "v2022_5" # Minimum supported Rust version (MSRV) @@ -49,6 +49,17 @@ jobs: uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 - name: cargo build 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: runs-on: ubuntu-latest container: quay.io/coreos-assembler/fcos-buildroot:testing-devel