Skip to content

Commit

Permalink
cicd: Add github actions script for test builds
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Dec 13, 2024
1 parent 5d1014a commit 5055870
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "main", "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

0 comments on commit 5055870

Please sign in to comment.