name: CI Build
on:
pull_request:
push:
branches:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
steps:
- uses: actions/checkout@v4
# Configure
- run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
# Build
- run: cmake --build build
# Run smoketest
- run: build/smoketest
# Run nbody benchmark
- run: build/nbody --headless