Skip to content

Update the workflow with the new min macOS image. #163

Update the workflow with the new min macOS image.

Update the workflow with the new min macOS image. #163

Workflow file for this run

name: Sanitizers
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
type: [Debug, RelWithDebInfo, MinSizeRel, Release]
sanitizer: [address, memory, undefined]
exclude:
- {os: "macOS-latest", sanitizer: "memory"}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Setup dependencies
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install -y clang
- name: Configure CMake (macOS)
shell: bash
if: startsWith(matrix.os, 'macOS')
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE/test -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DUTEST_USE_SANITIZER=${{ matrix.sanitizer }}
- name: Configure CMake with Clang (Ubuntu)
shell: bash
if: startsWith(matrix.os, 'ubuntu')
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE/test -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DUTEST_USE_SANITIZER=${{ matrix.sanitizer }}
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config ${{ matrix.type }}
- name: Test
working-directory: ${{github.workspace}}/build
shell: bash
run: ./utest_test
- name: Test Whole Program Optimization
working-directory: ${{github.workspace}}/build
shell: bash
run: ./utest_test_wpo
- name: Test with random order
working-directory: ${{github.workspace}}/build
shell: bash
run: ./utest_test --random-order
- name: Test with random order and seed
working-directory: ${{github.workspace}}/build
shell: bash
run: ./utest_test --random-order=42