From fdddd3f3fde4e7d32097acae30782cd6c64a239f Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Wed, 25 Nov 2026 12:24:22 +0900 Subject: [PATCH] update ci --- .github/workflows/build-default.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-default.yml b/.github/workflows/build-default.yml index b4c40769..9d65b1b5 100644 --- a/.github/workflows/build-default.yml +++ b/.github/workflows/build-default.yml @@ -24,15 +24,21 @@ jobs: ../.github/workflows/scripts/appimage_prepare_env.sh - name: Run cargo fmt run: cargo fmt --check - - name: Install cargo-hack - uses: taiki-e/install-action@cargo-hack - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 - name: Check Features - run: cargo hack check --feature-powerset --no-dev-deps --depth 4 --at-least-one-of=openvr,openxr --exclude-features=pipewire,feat-monado-metrics,default --keep-going + run: | + fails="" + for features in "openxr,wayland,osc,whisper" "openvr,x11" "openvr,openxr,osc" "openvr,openxr,wayland,x11,whisper"; do + cargo check --no-default-features --features "$features" || fails="$fails $features" + done + if [ -n "$fails" ]; then + echo "failed checks:$fails" + exit 1 + fi - name: Build run: cargo build --verbose - name: Run clippy - run: cargo clippy --no-deps + run: cargo clippy -- -D warnings - name: Run tests run: cargo test --verbose