Skip to content

Fix: Rewrite Continued #165

Fix: Rewrite Continued

Fix: Rewrite Continued #165

Workflow file for this run

# SHOULD DO: dedupe these and clean them up
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
name: Build Verification
jobs:
formatting:
name: Check for Formatting Issues
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Environment (Cached)
uses: ./.github/actions/setup-rust-environment/
- name: Install Formatting Dependencies
run: |
cargo install cargo-sort
rustup component add rustfmt
- name: Check Formatting
run: cargo fmt -- --check
- name: Check Cargo.toml Sorting
run: cargo sort --check
build_pressure:
name: Build with Pressure Feature
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Environment (Cached)
uses: ./.github/actions/setup-rust-environment/
- name: "Build with Pressure Feature"
uses: actions-rs/cargo@v1
with:
working-directory: boards/argus
command: build
args: --release --features pressure
build_temperature:
name: Build with Temperature Feature
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Environment (Cached)
uses: ./.github/actions/setup-rust-environment/
- name: "Build with Temperature Feature"
uses: actions-rs/cargo@v1
with:
command: build
working-directory: boards/argus
args: --release --features temperature
build_strain:
name: Build with Strain Feature
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Environment (Cached)
uses: ./.github/actions/setup-rust-environment/
- name: "Build with Strain Feature"
uses: actions-rs/cargo@v1
with:
command: build
working-directory: boards/argus
args: --release --features strain
test:
name: Run Host Tests
runs-on: ubuntu-latest
env:
RUST_MIN_STACK: 8388608
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Environment (Cached)
uses: ./.github/actions/setup-rust-environment/
- uses: actions-rs/cargo@v1
name: "Run Host Tests"
with:
command: make
args: test-host