Fixes for OpenBSD #221
Workflow file for this run
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
| name: Check | |
| on: | |
| pull_request: | |
| branches: [ "master", "stable-*" ] | |
| jobs: | |
| build-ubuntu-resolute-non-openssl-functions: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ubuntu:26.04 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| if ! type -P sudo; then | |
| apt-get -y update | |
| apt-get -y upgrade | |
| apt-get -y install sudo git automake autoconf libtool pkgconf libssl-dev make g++ | |
| fi | |
| CFLAGS="-O3" ./autogen.sh --with-openssl --prefix=/usr --with-tpm2 | |
| set +e | |
| make -j$((2 * $(nproc))) distcheck | |
| if [ $? -ne 0 ]; then | |
| for f in tests/*.log; do echo ">>>>>>> $f <<<<<<<"; tail -n 50 $f; done | |
| exit 1 | |
| fi | |
| exit 0 | |
| build-ubuntu-resolute: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ubuntu:26.04 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| if ! type -P sudo; then | |
| apt-get -y update | |
| apt-get -y upgrade | |
| apt-get -y install sudo git automake autoconf libtool pkgconf libssl-dev make g++ | |
| fi | |
| ./autogen.sh --with-openssl --prefix=/usr --with-tpm2 | |
| set +e | |
| make -j$((2 * $(nproc))) distcheck | |
| if [ $? -ne 0 ]; then | |
| for f in tests/*.log; do echo ">>>>>>> $f <<<<<<<"; tail -n 50 $f; done | |
| exit 1 | |
| fi | |
| exit 0 | |
| build-coveralls: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ubuntu:26.04 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build for coveralls.io | |
| run: | | |
| if ! type -P sudo; then | |
| apt-get -y update | |
| apt-get -y upgrade | |
| apt-get -y install sudo git automake autoconf libtool pkgconf libssl-dev make g++ | |
| fi | |
| git clone https://github.com/kgoldman/ibmtss.git | |
| pushd ibmtss | |
| git checkout tags/v2.5.0 | |
| autoreconf --force --install | |
| ./configure --prefix=/usr --disable-tpm-1.2 | |
| make -j$((2 * $(nproc))) | |
| sudo make install | |
| popd | |
| rm -rf ibmtss | |
| ./autogen.sh --with-openssl --prefix=/usr --with-tpm2 --enable-test-coverage | |
| make -j$((2 * $(nproc))) | |
| make -j$((2 * $(nproc))) check | |
| sudo make install | |
| git clone https://github.com/stefanberger/swtpm.git | |
| pushd swtpm | |
| sudo apt -y update | |
| sudo apt -y install devscripts equivs expect net-tools gawk libgmp-dev \ | |
| libtasn1-dev socat findutils libjson-glib-dev libseccomp-dev curl \ | |
| python3-pip | |
| ./autogen.sh --prefix=/usr | |
| set +e | |
| SWTPM_TEST_EXPENSIVE=1 SWTPM_TEST_IBMTSS2=1 make -j$((2 * $(nproc))) check | |
| rc=$? | |
| popd | |
| if [ $rc -eq 0 ]; then | |
| uidgid="$(id -nu):$(id -ng)" | |
| sudo chown -R ${uidgid} ./ | |
| git clone https://github.com/eddyxu/cpp-coveralls | |
| pushd cpp-coveralls | |
| git checkout tags/v0.4.2 | |
| sudo pip install -e . --break-system-packages | |
| popd | |
| cpp-coveralls -b src -e tests -e swtpm --gcov-options '\-lp' | |
| else | |
| for f in swtpm/tests/*.log; do echo ">>>>>>> $f <<<<<<<"; tail -n 50 $f; done | |
| exit 1 | |
| fi | |
| exit 0 | |
| env: | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |