Skip to content

ci: add GitHub Actions workflows #1

ci: add GitHub Actions workflows

ci: add GitHub Actions workflows #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
gcc: ['9', '10', '11']
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y help2man clang-tidy
- name: Build
run: make
- name: Run tests
run: make test
- name: Lint
run: make lint
flox-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Flox
uses: flox/install-flox@v1
- name: Build with Flox
run: |
flox activate
make
- name: Test with Flox
run: |
flox activate
make test