Skip to content

watched_tasks: maintain a list of spawned async tasks and propagate errors #139

watched_tasks: maintain a list of spawned async tasks and propagate errors

watched_tasks: maintain a list of spawned async tasks and propagate errors #139

Workflow file for this run

name: tacd
on:
pull_request:
paths-ignore:
- 'web/**'
push:
branches:
- main
env:
# Make sure cargo commands not only fail on hard errors but also on warnings
# so we do not accidentially miss newly introduced warnings.
RUSTFLAGS: -D warnings
jobs:
check:
strategy:
matrix:
features:
- ""
- "--features=demo_mode --no-default-features"
- "--tests"
name: cargo check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt update
- run: sudo apt install libsystemd-dev libiio-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check
args: ${{ matrix.features }}
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
strategy:
matrix:
features:
- ""
- "--features=demo_mode --no-default-features"
- "--tests"
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt update
- run: sudo apt install libsystemd-dev libiio-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: ${{ matrix.features }}
name: Clippy Output
deny:
name: cargo deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt update
- run: sudo apt install libsystemd-dev libiio-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test