From 797a6b4e89f4a050c04b529ba0db2baf5fb8e1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Schabh=C3=BCttl?= Date: Mon, 1 Jun 2026 16:11:03 +0200 Subject: [PATCH] ci: add build check for mqtt feature --- .github/workflows/pr-check.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pr-check.yml diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 00000000..1e6ab101 --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,33 @@ +name: PR build check (mqtt) + +# Baut den sensing-server mit aktiviertem mqtt-Feature, damit der +# Per-Node-Discovery-Patch (#899) verifiziert wird. + +on: + push: + branches: [ "fix/per-node-mqtt-discovery" ] + pull_request: + workflow_dispatch: # erlaubt manuelles Starten ueber den Actions-Tab + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo + uses: Swatinem/rust-cache@v2 + with: + workspaces: v2 + + - name: cargo check (mqtt feature) + working-directory: v2 + run: cargo check -p wifi-densepose-sensing-server --features mqtt + + - name: cargo build (mqtt feature) + working-directory: v2 + run: cargo build -p wifi-densepose-sensing-server --features mqtt