aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-27 12:59:35 -0400
committerDavid Robillard <d@drobilla.net>2022-07-10 13:39:53 -0400
commitf6c961b25c5a10053022745cfbcc2d5c7947692c (patch)
tree11125c9a164e435c2c0a19f5da5c2121bf9a58a2
parent5e78edf6e09373938a796cf44fb38d2309d04b4d (diff)
downloadserd-f6c961b25c5a10053022745cfbcc2d5c7947692c.tar.gz
serd-f6c961b25c5a10053022745cfbcc2d5c7947692c.tar.bz2
serd-f6c961b25c5a10053022745cfbcc2d5c7947692c.zip
Add FreeBSD row to CI
-rw-r--r--.gitlab-ci.yml15
-rw-r--r--README.md4
-rw-r--r--meson/suppressions/meson.build6
3 files changed, 23 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 764055b4..64098849 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,6 +80,21 @@ x64_sanitize:
LDFLAGS: "-fno-sanitize-recover=all -fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=unsigned-integer-overflow -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability"
+freebsd_dbg:
+ <<: *build_definition
+ tags: [freebsd,meson]
+ script:
+ - meson setup build -Dbuildtype=debug -Dstrict=true -Dwerror=true
+ - ninja -C build test
+
+freebsd_rel:
+ <<: *build_definition
+ tags: [freebsd,meson]
+ script:
+ - meson setup build -Dbuildtype=release -Dstrict=true -Dwerror=true
+ - ninja -C build test
+
+
mingw32_dbg:
<<: *build_definition
image: lv2plugin/debian-mingw32
diff --git a/README.md b/README.md
index cae1c9f6..8a21cbca 100644
--- a/README.md
+++ b/README.md
@@ -15,8 +15,8 @@ Features
[ISC license][].
* **Portable and Dependency-Free:** Serd has no external dependencies other
- than the C standard library. It is known to compile with GCC, Clang, and
- MSVC (as C++), and is tested on GNU/Linux, MacOS, and Windows.
+ than the C standard library. It is known to compile with Clang, GCC, and
+ MSVC, and is tested on GNU/Linux, FreeBSD, MacOS, and Windows.
* **Small:** Serd is implemented in a few thousand lines of C. When optimized,
it compiles to well under 100 KiB.
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index a7aabecf..ed7ec57b 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -29,6 +29,12 @@ if is_variable('cc')
'-Wno-sign-conversion',
]
+ if host_machine.system() == 'freebsd'
+ c_suppressions += [
+ '-Wno-c11-extensions',
+ ]
+ endif
+
elif cc.get_id() == 'gcc'
c_suppressions += [
'-Wno-cast-align',