pldm: Don't assume File PDR Record is first #3
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
# This is a wrapper around ci/runtests.sh | |
# ci/runtests.sh is intended to be usable locally without github. | |
name: ci | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
# nvme-mi-dev uses edition 2024, stablised in 1.85 | |
rust_version: [stable, 1.85, nightly] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install usbredir build dependencies | |
run: > | |
sudo apt-get update && | |
sudo apt-get install libusbredirparser-dev | |
- name: Cache Rust files | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/ | |
target/ci/ | |
# Save a unique cache each time | |
# (https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache) | |
key: rust-${{ matrix.rust_version }}-${{ github.run_id }} | |
# Load from the most recent match | |
restore-keys: | | |
rust-${{ matrix.rust_version }} | |
- name: Rustup ${{ matrix.rust_version }} | |
run: | | |
rustup override set ${{ matrix.rust_version }} | |
- name: Install rustfmt & clippy components | |
run: | | |
rustup component add rustfmt clippy | |
- name: Build and test ${{ matrix.rust_version }} | |
run: ./ci/runtests.sh |