Skip to content

Add CI via GitHub Actions #1

Add CI via GitHub Actions

Add CI via GitHub Actions #1

Workflow file for this run

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

Check failure on line 15 in .github/workflows/cmake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cmake.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
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