-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
fd1663f
commit 0d9a59d
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 |