sinf 0.1.0

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

on:
  pull_request:

permissions:
  contents: read

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

jobs:
  macos-arm:
    name: macOS ARM
    runs-on: macos-15
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
      - name: Install toolchain
        uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
        with:
          toolchain: "1.95.0"
          components: clippy
      - name: Check and test macOS ARM
        run: |
          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
          RUSTFLAGS=-Dwarnings cargo check --features apple-sandbox
          cargo clippy --features serde -- -D warnings
          APPLE_CI=1 cargo test -- --test-threads=1
          APPLE_CI=1 cargo test --features serde -- --test-threads=1

  ios-sim:
    name: iOS simulator
    runs-on: macos-latest
    env:
      TARGET: aarch64-apple-ios-sim
      RUSTFLAGS: -Dwarnings
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
      - name: Install toolchain
        uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
        with:
          toolchain: "1.95.0"
          targets: aarch64-apple-ios-sim
      - name: Check iOS simulator
        run: |
          cargo check --target=$TARGET
          cargo check --target=$TARGET --features serde
          cargo check --target=$TARGET --features apple-sandbox
          cargo check --target=$TARGET --no-default-features
          cargo check --target=$TARGET --no-default-features --features debug,serde,system,disk,component,network,user,gpu,hardware,multithread