From 0d9a59d589cd2b886e8dda3b243b0460f8cc1a02 Mon Sep 17 00:00:00 2001 From: Richard Phibel Date: Thu, 10 Aug 2023 18:01:43 +0200 Subject: [PATCH] Add basic CI This change adds a basic CI. This is meant to be a starting point, that's why we only build on Fedora. --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..48194581 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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