chore: implement CI check for feature powerset (#743)

* feature: Cache dependencies install in CI

* feature: Implement CI check for feature powerset

* fix: Fix dependency feature issues in subcrates

* fix: Add libadwaita to CI
This commit is contained in:
Alik Aslanyan
2025-09-10 08:27:57 +03:00
committed by GitHub
parent 2096a1ebc4
commit ef3dfe9ea6
3 changed files with 18 additions and 3 deletions
+15
View File
@@ -99,3 +99,18 @@ jobs:
run: cargo +nightly-2025-01-03 miri setup
- name: Run tests inside Miri
run: cargo +nightly-2025-01-03 miri test
check-features-powerset:
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft }}
strategy:
matrix:
command:
- check --feature-powerset --no-dev-deps --all
- test --feature-powerset --all
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
- uses: ./.github/actions/setup-environment
- uses: taiki-e/install-action@cargo-hack
- name: Run cargo hack ${{ matrix.command }}
run: cargo hack ${{ matrix.command }}
+2 -2
View File
@@ -11,6 +11,6 @@ anyhow = { workspace = true }
tracing = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["net", "sync"] }
tokio = { workspace = true, features = ["net", "sync", "time", "io-util"] }
futures = { workspace = true }
nix = { workspace = true }
nix = { workspace = true, features = ["user"] }
+1 -1
View File
@@ -8,7 +8,7 @@ args = ["clap"]
[dependencies]
amdgpu-sysfs = { workspace = true }
serde = { workspace = true }
serde = { workspace = true, features = ["derive", "rc"]}
serde_with = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }