OpenBSD CI (#143)

This commit is contained in:
Alex Kotov 2022-12-13 06:55:09 +04:00 committed by GitHub
parent f3f34e9057
commit 0d8bdec847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 3 deletions

39
.openbsd.yml Normal file
View File

@ -0,0 +1,39 @@
# We use sourcehut CI (https://builds.sr.ht) to test on OpenBSD.
# For GNU/Linux CI see GitHub Actions.
image: openbsd/7.2
arch: amd64
sources:
- https://github.com/tailix/libkernaux.git
packages:
- autoconf-2.71
- automake-1.16.5
- cppcheck
- libyaml
- m4
- py3-pip
- py3-wheel
- python3
- wget
environment:
AUTOCONF_VERSION: '2.71'
AUTOMAKE_VERSION: '1.16'
tasks:
- libtool: |
wget https://ftpmirror.gnu.org/libtool/libtool-2.4.7.tar.gz
tar -xzf libtool-2.4.7.tar.gz
cd libtool-2.4.7
./configure
make
doas make install
- dependencies: |
pip3 install --user Jinja2 PyYAML
- build: |
cd libkernaux
./autogen.sh
./configure --enable-debug --enable-checks-all CFLAGS='-O3'
make
doas make install
- test: |
cd libkernaux
make check

View File

@ -20,9 +20,11 @@ CPPCHECK_INC = \
-I$(top_srcdir)/include
CPPCHECK_SUPPRESS = \
--suppress='constArgument:$(top_srcdir)/examples/macro_cast.c' \
--suppress='unusedStructMember:$(top_srcdir)/examples/*.c' \
--suppress='unusedStructMember:$(top_srcdir)/tests/test_multiboot2_info_*.c'
--suppress='constArgument:$(top_srcdir)/examples/macro_cast.c' \
--suppress='constParameter:$(top_srcdir)/examples/printf_file*.c' \
--suppress='unusedStructMember:$(top_srcdir)/examples/*.c' \
--suppress='unusedStructMember:$(top_srcdir)/tests/test_multiboot2_info_*.c' \
--suppress='unusedVariable'
CPPCHECK_PATHS = \
$(top_builddir)/examples \