summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2022-06-23 14:43:55 -0400
committerColin Walters <walters@verbum.org>2022-06-23 14:45:11 -0400
commited98a7904c9536984567412daf9cc517555a81e4 (patch)
tree8ed43706f7f2d14e3c97688820d55bdb050c48fa
parent578a0c2507d92c70f1dac7608b113b3ecaf3934f (diff)
downloadostree-ed98a7904c9536984567412daf9cc517555a81e4.tar.gz
ci/rust: Enable `cap-std-apis` in default build, add a no-feature build
Our CI was missing coverage of `cap-std-apis`.
-rw-r--r--.github/workflows/rust.yml13
1 files changed, 12 insertions, 1 deletions
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