test: fix scan-build warnings #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2026 Juergen Repp | |
| # SPDX-FileCopyrightText: 2026 Moritz Buhl | |
| # SPDX-License-Identifier: BSD-2-Clause | |
| name: FreeBSD Build Status | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| freebsd-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v7 | |
| - name: Test in FreeBSD | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| prepare: | | |
| set -eux | |
| export ASSUME_ALWAYS_YES=yes | |
| pkg bootstrap -f | |
| pkg update -f | |
| pkg install -y autoconf autoconf-archive automake bash cmocka \ | |
| coreutils curl dbus dbus-glib expat gettext-runtime git glib \ | |
| gmake json-c libtool libuuid openssl pkgconf swtpm wget | |
| sync | |
| run: | | |
| set -eux | |
| cd /home/runner/work/tpm2-abrmd/tpm2-abrmd | |
| export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
| export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig" | |
| export CFLAGS="-I/usr/local/include -I/usr/local/openssl/include" | |
| export CPPFLAGS="$CFLAGS" | |
| export LDFLAGS="-L/usr/local/lib" | |
| export LD_LIBRARY_PATH="/usr/local/lib" | |
| export TPM2TSS_BRANCH=master | |
| export MAKE=gmake | |
| git config --global --add safe.directory '*' | |
| ./.ci/get_deps.sh "$(pwd)" | |
| ./bootstrap | |
| ./configure --enable-unit=yes --enable-integration=yes --disable-dependency-tracking | |
| gmake -j"$(sysctl -n hw.ncpu)" V=1 check || { | |
| find . -name 'test-suite.log' -exec cat {} \; | |
| exit 1 | |
| } |