sysinfo 0.40.0

Library to get system information such as processes, CPUs, disks, components and networks
Documentation
on:
  pull_request:

name: NetBSD

jobs:
  test:
    runs-on: ubuntu-latest
    name: A job to run tests in NetBSD
    steps:
      - uses: actions/checkout@v7
      - name: Setup NetBSD VM
        uses: vmactions/netbsd-vm@v1
        with:
          usesh: true
          release: "10.1"
          sync: nfs
          prepare: |
            /usr/sbin/pkg_add -u curl
            curl https://sh.rustup.rs -sSf --output rustup.sh
            sh rustup.sh -y --profile=minimal --default-toolchain=1.95
            . $HOME/.cargo/env
            rustup --version
            rustup component add clippy
          run: |
            . $HOME/.cargo/env
            cargo check
            echo "===== no-default-features ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features
            echo "===== system ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features system
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,system
            echo "===== disk ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features disk
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,disk
            echo "===== component ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features component
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,component
            echo "===== network ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features network
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,network
            echo "===== user ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features user
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,user
            echo "===== gpu ===="
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features gpu
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,gpu
            echo "===== clippy ===="
            cargo clippy --features serde -- -D warnings
            cargo clippy --features multithread -- -D warnings
            echo "===== example ===="
            cargo check --example simple
            echo "===== tests ===="
            NETBSD_CI=1 cargo test -- --test-threads=1
            NETBSD_CI=1 cargo test --lib -- --ignored --test-threads=1