Fix deadlock caused by runner subprocess stdio pipe buffer being ful… #98
This file contains 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
# Run clippy, check and deny | |
on: | |
push: | |
branches: [master, staging, trying] | |
pull_request: | |
merge_group: | |
name: Run linter and check | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup | |
# Check monitor separately as the build needs to happen separately due to conflict of probe-rs with probe-rs-test | |
- name: cargo check monitor | |
run: cargo check --all-features -p monitor | |
# Check controller separately as --all-features is an invalid configuration for this crate | |
- name: cargo check controller | |
run: cargo check --features monitor -p controller | |
- name: cargo check others | |
run: cargo check --features monitor -p controller | |
# Special test-case hive CLI, which needs to build/run on win, linux and mac | |
check-hive-cli: | |
name: Check (hive CLI) | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup | |
- name: cargo check hive | |
run: cargo check --all-features -p hive | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup | |
with: | |
components: clippy | |
- name: Run cargo clippy monitor | |
run: cargo clippy --all-features -p monitor -- -D warnings | |
- name: Run cargo clippy controller | |
run: cargo clippy --features monitor -p controller -- -D warnings | |
- name: Run cargo clippy others | |
run: cargo clippy --workspace --all-features --exclude monitor --exclude controller -- -D warnings | |
# cargo-deny: | |
# name: Deny | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout sources | |
# uses: actions/checkout@v3 | |
# | |
# - name: Setup probe-rs testcandidate | |
# uses: actions/checkout@v3 | |
# with: | |
# repository: probe-rs/probe-rs | |
# ref: v0.20.0 | |
# path: probe-rs-hive-testcandidate | |
# | |
# # workaround as actions/checkout cannot clone outside of workspace | |
# - name: Move probe-rs testcandidate | |
# run: mv probe-rs-hive-testcandidate ../ | |
# | |
# - uses: EmbarkStudios/cargo-deny-action@v1 |