Bump external/benchmark from 761305e
to 4e3f2d8
#1518
Workflow file for this run
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: MacOS | |
on: | |
push: | |
paths: | |
# Workflow file itself | |
- '.github/workflows/MacOS.yml' | |
# C++ files | |
- '**.cpp' | |
- '**.hpp' | |
# CMake files | |
- '**.cmake' | |
- '**.txt' | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: | |
branches: | |
- main | |
- develop | |
release: | |
types: [published] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CMAKE_C_COMPILER_LAUNCHER: "ccache" | |
CMAKE_CXX_COMPILER_LAUNCHER: "ccache" | |
jobs: | |
Build: | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
cfg: | |
#- { compiler: gcc, compiler_version: "12" } | |
- { compiler: clang, compiler_version: "15.4" } | |
build_type: | |
- "Debug" | |
- "Release" | |
dynamic_test: | |
- "none" | |
- "asan" | |
- "tsan" | |
- "ubsan" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup ccache | |
uses: hendrikmuhs/ccache-action@v1 | |
with: | |
key: ${{ runner.os }}-${{ matrix.cfg.compiler }}-${{ matrix.cfg.compiler_version }} | |
- name: Setup XCode | |
if: matrix.cfg.compiler == 'clang' | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.cfg.compiler_version }} | |
- name: Setup Environment | |
run: external/Phi/scripts/ci/SetupEnvironment.sh | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install ninja | |
run: brew install ninja | |
- name: Install dependencies | |
run: pip install wheel jinja2 | |
- name: Install | |
run: | | |
if [ "${{ matrix.cfg.compiler }}" = "gcc" ]; then | |
brew install gcc@${{ matrix.cfg.compiler_version }} | |
echo "CC=gcc-${{ matrix.cfg.compiler_version }}" >> $GITHUB_ENV | |
echo "CXX=g++-${{ matrix.cfg.compiler_version }}" >> $GITHUB_ENV | |
elif [ "${{ matrix.cfg.compiler}}" = "clang" ]; then | |
echo "CC=clang" >> $GITHUB_ENV | |
echo "CXX=clang++" >> $GITHUB_ENV | |
fi | |
- name: Configure build directory | |
run: | | |
mkdir build -p | |
cd build | |
cmake -DCMAKE_BUILD_TYPE:STRING=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS:STRING="-DDLXEMU_VERIFY_UNDO_REDO -DDLXEMU_VERIFY_COLUMN" -DDLXEMU_ENABLE_ASAN:BOOL=${{ matrix.dynamic_test == 'asan' }} -DDLXEMU_ENABLE_LSAN:BOOL=${{ matrix.dynamic_test == 'lsan' }} -DDLXEMU_ENABLE_TSAN:BOOL=${{ matrix.dynamic_test == 'tsan' }} -DDLXEMU_ENABLE_UBSAN:BOOL=${{ matrix.dynamic_test == 'ubsan' }} .. | |
- name: Build | |
working-directory: ./build | |
run: cmake --build . --config ${{ matrix.build_type }} | |
- name: Run tests | |
working-directory: ./build | |
run: ctest . -C ${{ matrix.build_type }} |