Bump minimum required CMake version, and only include CPM if needed (… #22
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: Bench | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build_and_test: | |
name: Run tests on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false # show all errors for each platform (vs. cancel jobs on error) | |
matrix: | |
os: [ubuntu-latest, windows-2019, macos-latest] | |
steps: | |
- name: Get latest CMake | |
uses: lukka/get-cmake@latest | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Configure | |
shell: bash | |
run: cmake -DCMAKE_BUILD_TYPE=Release -DCHOWDSP_WDF_TEST_WITH_XSIMD_VERSION=8.0.5 -Bbuild | |
- name: Build | |
shell: bash | |
run: cmake --build build --config Release --parallel 4 --target wright_omega_bench | |
- name: Run | |
shell: bash | |
run: ./build/bench-binary/wright_omega_bench |