types: Expand RE_BREAKPOINT macro to __builtin_debugtrap (#961) #3987
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
build_type: [Release, Debug] | |
compiler: [gcc, clang] | |
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] | |
exclude: | |
- os: macos-11 | |
compiler: gcc | |
- os: macos-12 | |
compiler: gcc | |
env: | |
CC: ${{ matrix.compiler }} | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- uses: actions/checkout@v3 | |
- name: openssl path macos | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl)" >> $GITHUB_ENV | |
- name: fix flaky azure mirrors | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo sed -i 's/azure\./de\./' /etc/apt/sources.list | |
- name: install packages | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo apt-get update && sudo apt-get install -y ninja-build | |
- name: install packages | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
brew install ninja | |
- name: make info | |
run: | | |
echo "OS: ${{ matrix.os }}" | |
echo "--- ${{ matrix.compiler }} DEBUG VERSION ---" | |
${{ matrix.compiler }} - --version | |
- name: cmake | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -Werror -DCMAKE_C_FLAGS="-Werror" | |
cmake --build build -t retest | |
- name: retest | |
run: | | |
./build/test/retest -r -v |