mio/.github/workflows/macos.yml
2023-03-08 21:42:34 +08:00

34 lines
635 B
YAML

name: MacOS
on:
pull_request:
push:
release:
types: [published]
jobs:
build_macos:
runs-on: macos-12
strategy:
fail-fast: false
matrix:
configuration: [Debug, Release]
architecture: [x64]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure
run: |
cmake -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
- name: Build
working-directory: build
run: |
make -j$(sysctl -n hw.logicalcpu)
- name: Test
working-directory: build
run: |
ctest