From 91505dfccfcc69479b2d69110d8e3d7ac0c83813 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 13 Dec 2024 14:10:18 -0500 Subject: [PATCH] cicd: Add github actions script for test builds Signed-off-by: Stefan Berger --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..8c04309e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Check + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master", "stable-0.10" ] + +jobs: + build-ubuntu-focal: + runs-on: ubuntu-20.04 + env: + CONFIG: "--with-openssl --prefix=/usr --with-tpm2" + TARGET: "distcheck" + NPROC: "nproc" + CFLAGS: "-O3" + steps: + - uses: actions/checkout@v4 + + - name: Build + run: | + ./autogen.sh ${CONFIG} + make -j$(${NPROC}) ${TARGET} + if [ $? -ne 0 ]; then + for f in tests/*.log; do echo ">>>>>>> $f <<<<<<<"; tail -n 50 $f; done + fi