Skip to content

Fix: the issue that causes basic_string::_M_create error #40

Fix: the issue that causes basic_string::_M_create error

Fix: the issue that causes basic_string::_M_create error #40

Workflow file for this run

name: macOS ARM
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
arch: [arm]
config:
# - name: "default"
# install: "brew install cmake tbb fmt boost ninja"
# cmake_opts: ""
# - name: "no_fmt"
# install: "brew install cmake tbb boost ninja"
# cmake_opts: "-DWITH_FMT=OFF"
- name: "no_tbb"
install: "brew install cmake fmt boost ninja"
cmake_opts: "-DWITH_TBB=OFF"
- name: "no_boost"
install: "brew install cmake tbb fmt ninja"
cmake_opts: "-DWITH_BOOST=OFF"
- name: "no_fmt_no_tbb"
install: "brew install cmake boost ninja"
cmake_opts: "-DWITH_FMT=OFF -DWITH_TBB=OFF"
- name: "no_fmt_no_boost"
install: "brew install cmake tbb ninja"
cmake_opts: "-DWITH_FMT=OFF -DWITH_BOOST=OFF"
- name: "no_tbb_no_boost"
install: "brew install cmake fmt ninja"
cmake_opts: "-DWITH_TBB=OFF -DWITH_BOOST=OFF"
- name: "no_fmt_no_tbb_no_boost"
install: "brew install cmake ninja"
cmake_opts: "-DWITH_FMT=OFF -DWITH_TBB=OFF -DWITH_BOOST=OFF"
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Setup Homebrew
run: |
which brew
if [ $? -ne 0 ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
- name: Install dependencies
run: ${{ matrix.config.install }}
- name: Setup CMake and Ninja
uses: lukka/[email protected]
- name: Check Clang Version
run: clang++ --version
- name: Print Configuration
run: 'echo "Running configuration: ${{ matrix.config.name }}"'
- name: Create build directory
run: mkdir build
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release ${{ matrix.config.cmake_opts }}
- name: Build
run: cmake --build build --config Release