Skip to content

Update function name, update threadpool #126

Update function name, update threadpool

Update function name, update threadpool #126

Workflow file for this run

name: macos
on:
push:
branches:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
shared: [YES, NO]
standard: [20]
steps:
- name: "Checkout Code"
uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 0
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-D BUILD_SHARED_LIBS=${{matrix.shared}} \
-D CMAKE_CXX_STANDARD=${{matrix.standard}} --preset=ci-macos
- name: Build
run: |
threads=`sysctl -n hw.logicalcpu`
cmake --build build --config ${{matrix.build_type}} --parallel $threads
- name: Test
run: ctest --test-dir build --verbose --output-on-failure --parallel 2
env:
CTEST_OUTPUT_ON_FAILURE: True