Add CI via GitHub Actions #1
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: CMake build | ||
on: | ||
push: | ||
paths: | ||
- '.github/**/*.yml' | ||
- 'CMakeLists.txt' | ||
- 'cmake/**' | ||
- '**.cc' | ||
- '**.h' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
cmake-linux-x86_64 | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update apt | ||
run: apt update | ||
- name: Install ninja | ||
run: apt install ninja-build | ||
- name: Configure | ||
run: cmake -Bbuild -S. -GNinja -DCMAKE_BUILD_TYPE=Release -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON | ||
- name: Build | ||
run: cmake --build build | ||
- name: Test | ||
run: ctest --test-dir build |