mirror of
https://github.com/vimpunk/mio.git
synced 2026-01-01 03:12:20 +08:00
34 lines
635 B
YAML
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
|