Skip to content

ci: Add github actions script for test builds #2

ci: Add github actions script for test builds

ci: Add github actions script for test builds #2

Workflow file for this run

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