sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
name: BSD

on:
  pull_request:

permissions:
  contents: read

concurrency:
  group: bsd-${{ github.head_ref }}
  cancel-in-progress: true

jobs:
  freebsd:
    name: FreeBSD
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
      - name: Run FreeBSD checks
        uses: vmactions/freebsd-vm@811efaaac0668df8bfb8308c3ec997b5ab50037b # v1
        with:
          usesh: true
          release: "15.0"
          prepare: |
            pkg install -y curl
            curl https://sh.rustup.rs -sSf --output rustup.sh
            sh rustup.sh -y --profile=minimal --default-toolchain=1.95
            . $HOME/.cargo/env
            rustup component add clippy
          run: |
            . $HOME/.cargo/env
            cargo check
            RUSTFLAGS=-Dwarnings cargo check --no-default-features
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,system,disk,component,network,user,gpu,hardware,multithread
            cargo clippy --features serde -- -D warnings
            FREEBSD_CI=1 cargo test -- --test-threads=1
            FREEBSD_CI=1 cargo test --features serde -- --test-threads=1

  netbsd:
    name: NetBSD
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
      - name: Run NetBSD checks
        uses: vmactions/netbsd-vm@5957cf330aef2e6ddc63c604364c99ce2e02b91d # 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 component add clippy
          run: |
            . $HOME/.cargo/env
            cargo check
            RUSTFLAGS=-Dwarnings cargo check --no-default-features
            RUSTFLAGS=-Dwarnings cargo check --no-default-features --features debug,serde,system,disk,component,network,user,gpu,hardware,multithread
            cargo clippy --features serde -- -D warnings
            NETBSD_CI=1 cargo test -- --test-threads=1
            NETBSD_CI=1 cargo test --features serde -- --test-threads=1