Skip to content

Commit

Permalink
Add basic CI
Browse files Browse the repository at this point in the history
This change adds a basic CI. This is meant to be a starting point,
that's why we only build on Fedora.
  • Loading branch information
rphibel authored and qdeslandes committed Aug 16, 2023
1 parent fd1663f commit 0d9a59d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
container: fedora:38
strategy:
fail-fast: false
matrix:
buildtype:
- debug
- release
steps:
- name: Install packages
run: |
sudo dnf -y install 'dnf-command(copr)'
sudo dnf -y copr enable naccyde/criterion
sudo dnf -y install cmake libbpf-devel \
criterion-devel clang-tools-extra lcov libasan libubsan \
doxygen python3-sphinx python3-breathe python3-furo
- name: Check out repository code
uses: actions/checkout@v3
- name: Configure build
run: cmake -B $GITHUB_WORKSPACE/build -S $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }}
- name: Build
run: make -C $GITHUB_WORKSPACE/build

0 comments on commit 0d9a59d

Please sign in to comment.