Skip to content

fix(dt): remove msi-parent property from PCI bridge node #1127

fix(dt): remove msi-parent property from PCI bridge node

fix(dt): remove msi-parent property from PCI bridge node #1127

Workflow file for this run

name: Rust
permissions: read-all
on:
push:
branches: ["main"]
paths: &on_paths
- "**/*.rs"
- "**/Cargo.toml"
- Cargo.lock
- .github/workflows/rust.yml
pull_request:
branches: ["main"]
paths: *on_paths
env:
CARGO_TERM_COLOR: always
jobs:
build_test:
strategy:
matrix:
target:
- name: x86_64-unknown-linux-gnu
os: ubuntu-latest
- name: aarch64-unknown-linux-gnu
os: ubuntu-24.04-arm
- name: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: |
~/.cargo/bin/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.rustup/settings.toml
~/.rustup/toolchains/
~/.rustup/update-hashes/
target/
target/tarpaulin/
key: ${{ matrix.target.name }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt,llvm-tools
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install tools
uses: taiki-e/install-action@cc33365ec7e3350bc47bf935f247582cc6f68344 # v2.65.12
with:
tool: cargo-llvm-cov,cargo-deny
- name: Check dependencies
run: cargo deny check
- name: Build
run: cargo build --verbose
- name: Format
run: cargo +nightly fmt --check
if: matrix.target.name == 'x86_64-unknown-linux-gnu'
- name: Run tests and collect coverage
env:
RUST_LOG: "trace"
run: |
cargo +nightly llvm-cov clean --workspace
cargo +nightly llvm-cov --branch \
--no-clean --workspace --ignore-filename-regex '.*_test.rs$' \
--lcov --output-path lcov-${{ matrix.target.name }}.info
- name: Clippy
run: cargo clippy -- -D warnings
- name: Upload coverage report artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: lcov-${{ matrix.target.name }}.info
path: lcov-${{ matrix.target.name }}.info
upload_coverage:
needs: build_test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Download coverage reports
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
path: lcov
pattern: lcov-*.info
merge-multiple: true
- name: Merge coverage reports
run: |
sed -i 's#SF:/Users/#SF:/home/#g' lcov/*apple-darwin*.info
npx lcov-result-merger 'lcov/lcov-*.info' lcov.info
- name: Upload coverage
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
continue-on-error: true