add publish flag to SensorData and conditionally process MQTT messages #95
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
rust-checks: | |
name: Rust Checks | |
runs-on: ubuntu-latest | |
env: | |
MQTT_HOSTNAME: test.mosquitto.org | |
MQTT_USERNAME: username | |
MQTT_PASSWORD: password | |
MQTT_PORT: 1883 | |
WIFI_SSID: ssid | |
WIFI_PSK: password | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: esp-rs/[email protected] | |
with: | |
default: true | |
buildtargets: esp32s3 | |
ldproxy: false | |
version: "1.85.0" | |
- name: Enable caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Run build | |
run: cargo build --release | |
- name: Run fmt | |
run: cargo fmt --all -- --check --color always | |
- name: Run clippy | |
run: cargo clippy --all-features --workspace -- -D warnings |