From 71e1b674dbc684e046951268411cdcadf60600c6 Mon Sep 17 00:00:00 2001 From: AkhilTThomas Date: Fri, 13 Dec 2024 19:02:17 +0100 Subject: [PATCH] add cargo-hack * Run cargo check on each feature for all bins --- .github/workflows/kuksa_databroker_build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/kuksa_databroker_build.yml b/.github/workflows/kuksa_databroker_build.yml index 7765acab..a4b2fb6e 100644 --- a/.github/workflows/kuksa_databroker_build.yml +++ b/.github/workflows/kuksa_databroker_build.yml @@ -160,6 +160,9 @@ jobs: # Needed for pip with: python-version: '3.12' + - uses: taiki-e/install-action@v2.9.4 + with: + tool: cargo-hack@0.6 - name: Install build prerequisites working-directory: ${{github.workspace}}/ run: | @@ -173,6 +176,10 @@ jobs: run: | ./scripts/build-databroker.sh ${{ matrix.platform.name }} + - name: "Check each feature" + working-directory: ${{github.workspace}} + run: cargo hack check --each-feature + - name: "Archiving artifacts" shell: bash working-directory: ${{github.workspace}}/dist/${{ matrix.platform.name }}