mirror of
https://github.com/tailix/libkernaux.git
synced 2026-08-15 11:00:07 -04:00
OpenBSD CI (#143)
This commit is contained in:
parent
f3f34e9057
commit
0d8bdec847
2 changed files with 44 additions and 3 deletions
39
.openbsd.yml
Normal file
39
.openbsd.yml
Normal 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
|
||||||
|
|
@ -20,9 +20,11 @@ CPPCHECK_INC = \
|
||||||
-I$(top_srcdir)/include
|
-I$(top_srcdir)/include
|
||||||
|
|
||||||
CPPCHECK_SUPPRESS = \
|
CPPCHECK_SUPPRESS = \
|
||||||
--suppress='constArgument:$(top_srcdir)/examples/macro_cast.c' \
|
--suppress='constArgument:$(top_srcdir)/examples/macro_cast.c' \
|
||||||
--suppress='unusedStructMember:$(top_srcdir)/examples/*.c' \
|
--suppress='constParameter:$(top_srcdir)/examples/printf_file*.c' \
|
||||||
--suppress='unusedStructMember:$(top_srcdir)/tests/test_multiboot2_info_*.c'
|
--suppress='unusedStructMember:$(top_srcdir)/examples/*.c' \
|
||||||
|
--suppress='unusedStructMember:$(top_srcdir)/tests/test_multiboot2_info_*.c' \
|
||||||
|
--suppress='unusedVariable'
|
||||||
|
|
||||||
CPPCHECK_PATHS = \
|
CPPCHECK_PATHS = \
|
||||||
$(top_builddir)/examples \
|
$(top_builddir)/examples \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue