message: try github actions build with macos
diff: @@ -3,27 +3,40 @@ name: Build
  on: [push, pull_request]
  jobs:
  - linux:
  - name: linux ${{ matrix.compiler }} ${{ matrix.build_type }}
  - runs-on: ubuntu-20.04
  + build:
  + name: ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.build_type }}
  + runs-on: ${{ matrix.os }}
  strategy:
  matrix:
  + os: [ubuntu-20.04]
  compiler: [g++-10, clang++-12]
  build_type: [Release, Debug]
  - cxxflags: ["-fsanitize=address,undefined"]
  + include:
  + - os: macos-latest
  + compiler: clang++
  + build_type: Release
  + - os: macos-latest
  + compiler: clang++
  + build_type: Debug
  steps:
  - name: Checkout code
  uses: actions/checkout@v2
  - name: Install dependencies
  + if: runner.os == 'Linux'
  run: |
  wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
  sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main"
  sudo apt-get update
  sudo apt-get install z3 re2c ninja-build g++-10 clang-12
  + - name: Install dependencies
  + if: runner.os == 'macOS'
  + run: |
  + brew install z3 re2c ninja
  +
  - name: Compile
  run: ./.github/scripts/build.sh
  @@ -34,4 +47,4 @@ jobs:
  env:
  CMAKE_BUILD_TYPE: ${{ matrix.build_type }}
  CMAKE_CXX_COMPILER: ${{ matrix.compiler }}
  - CMAKE_CXX_FLAGS: ${{ matrix.cxxflags }}
  + CMAKE_CXX_FLAGS: "-fsanitize=address,undefined"
  