Reversion. #8389
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-and-Test-CLANG-MacOS | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
Build: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the latest clang compiler. | |
run: | | |
brew install llvm | |
- name: Install Seaborn | |
run: | | |
pip install seaborn | |
- name: Install Nasm. | |
run: | | |
brew install nasm | |
- name: Configure CMake | |
working-directory: ./ | |
run: | | |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DJSONIFIER_BENCHMARKS="TRUE" | |
- name: Build the Test | |
working-directory: ./Build | |
run: | | |
cmake --build . --config=${{matrix.build_type}} -v | |
- name: Install the Test | |
working-directory: ./Build | |
run: | | |
sudo cmake --install . --config=${{matrix.build_type}} | |
- name: Run the Test | |
working-directory: ./Build/Benchmarks | |
run: | | |
./Json-Performance | |
continue-on-error: true | |
Build-Fallback: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Debug] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the latest clang compiler. | |
run: | | |
brew install llvm | |
- name: Install Seaborn | |
run: | | |
pip install seaborn | |
- name: Install Nasm. | |
run: | | |
brew install nasm | |
- name: Configure CMake | |
run: | | |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DJSONIFIER_BENCHMARKS="TRUE" -DJSONIFIER_CPU_INSTRUCTIONS=0 | |
- name: Build the Test | |
run: | | |
cmake --build ./Build --config=${{matrix.build_type}} -v | |
- name: Install the Test | |
run: | | |
sudo cmake --install ./Build --config=${{matrix.build_type}} | |
- name: Run the Test | |
run: | | |
./Build/Benchmarks/Json-Performance | |
continue-on-error: true | |