ci: update CI workflow to use Ninja generator and fix dependency inst… #2
Workflow file for this run
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: 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: compile | |
run: | | |
cmake -B build -S . |