From a2fce001819ea5144652ecb9f828f892a1648fb8 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sat, 24 Feb 2024 00:14:21 +0100 Subject: [PATCH] CI: add build test run Add build test run and fuzzing test. Lua support is also enabled. Signed-off-by: Christian Marangi --- .github/workflows/build-libubox.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build-libubox.yml diff --git a/.github/workflows/build-libubox.yml b/.github/workflows/build-libubox.yml new file mode 100644 index 0000000..e45287a --- /dev/null +++ b/.github/workflows/build-libubox.yml @@ -0,0 +1,24 @@ +name: Build libubox + +on: + push: + pull_request: + +jobs: + build-backports: + name: Build libubox + runs-on: ubuntu-latest + + steps: + - name: Install Dependencies + run: | + sudo apt update && sudo apt install cmake make gcc pkg-config python3 libjson-c-dev lua5.1 liblua5.1-0-dev + + - name: Checkout + uses: actions/checkout@v4 + + - name: Install libubox + run: | + cmake -DBUILD_EXAMPLES=OFF -DUNIT_TESTING=ON + make + sudo make install