Skip to content

ci: enhance CI workflow with separate configure, build, test, and ins… #3

ci: enhance CI workflow with separate configure, build, test, and ins…

ci: enhance CI workflow with separate configure, build, test, and ins… #3

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: ubuntu:22.04-release
runs-on: ubuntu-22.04
env:
CMAKE_GENERATOR: Ninja
DEBIAN_FRONTEND: noninteractive
steps:
- name: install dependencies
run: |
sudo apt update
sudo apt install -y \
build-essential \
clang-format \
cmake \
ninja-build
- name: checkout repository
uses: actions/checkout@v4
- name: configure
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Release
- name: build
run: |
cmake --build build
- name: test
run: |
cd build
ctest --output-on-failure
- name: install
run: |
sudo cmake --install build