name: macOS user space CI

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

jobs:
  build:

    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v3
    - name: Install meson
      run: brew install meson
    - name: Meson setup
      run: meson setup build -Dslh_dsa_ascon_128s=enabled -Dslh_dsa_ascon_128f=enabled -Dsbsigntools=disabled
    - name: Meson compile
      run: meson compile -C build
    - name: Meson test
      run: meson test -C build --suite regression
