hpip 0.1.2

Host These Things Please - a modern async HTTP file server
name: ci-macos

permissions:
  contents: read

on:
  pull_request:
    types: [opened, synchronize, reopened]
    paths:
      - "**.rs"
      - "**/Cargo.toml"
      - ".github/workflows/**"
  push:
    branches:
      - main
    paths:
      - "**.rs"
      - "**/Cargo.toml"
      - ".github/workflows/**"

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        target:
          - x86_64-apple-darwin
          - aarch64-apple-darwin

    name: Test (stable) - ${{ matrix.target }}
    runs-on: macos-latest

    steps:
      - uses: actions/checkout@v6
      - uses: dtolnay/rust-toolchain@stable

      - name: Check build
        run: cargo check --all-targets

      - name: Check release build
        run: cargo check --all-targets --release

      - name: Run tests
        timeout-minutes: 20
        run: cargo test --no-fail-fast -- --nocapture