# Copyright 2019-2022 David Robillard # SPDX-License-Identifier: CC0-1.0 OR ISC arm32_dbg: image: lv2plugin/debian-arm32 script: - meson setup build --cross-file=/usr/share/meson/cross/arm-linux-gnueabihf.ini -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test arm32_rel: image: lv2plugin/debian-arm32 script: - meson setup build --cross-file=/usr/share/meson/cross/arm-linux-gnueabihf.ini -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test arm64_dbg: image: lv2plugin/debian-arm64 script: - meson setup build --cross-file=/usr/share/meson/cross/aarch64-linux-gnu.ini -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test arm64_rel: image: lv2plugin/debian-arm64 script: - meson setup build --cross-file=/usr/share/meson/cross/aarch64-linux-gnu.ini -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test x64_dbg: image: lv2plugin/debian-x64 script: - meson setup build -Dbuildtype=debug -Dstrict=true -Dwerror=true -Db_coverage=true - ninja -C build test - ninja -C build coverage-html artifacts: paths: - build/meson-logs/coveragereport x64_rel: image: lv2plugin/debian-x64 script: - meson setup build -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test x64_static: image: lv2plugin/debian-x64 script: - meson setup build -Ddefault_library=static -Dstrict=true -Dwerror=true - ninja -C build test x64_sanitize: image: lv2plugin/debian-x64-clang script: - meson setup build -Db_lundef=false -Dbuildtype=plain -Dstrict=true -Dwerror=true -Dc_args="-fno-sanitize-recover=all -fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" -Dc_link_args="-fno-sanitize-recover=all -fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" - ninja -C build test - meson configure build -Dbuildtype=debugoptimized -Dc_args="" -Dc_link_args="" - meson configure build -Db_sanitize=memory - ninja -C build test - meson configure build -Db_sanitize=thread - ninja -C build test variables: CC: "clang" freebsd_dbg: tags: [freebsd,meson] script: - meson setup build -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test freebsd_rel: tags: [freebsd,meson] script: - meson setup build -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test mingw32_dbg: image: lv2plugin/debian-mingw32 script: - meson setup build --cross-file=/usr/share/meson/cross/i686-w64-mingw32.ini -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test mingw32_rel: image: lv2plugin/debian-mingw32 script: - meson setup build --cross-file=/usr/share/meson/cross/i686-w64-mingw32.ini -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test mingw64_dbg: image: lv2plugin/debian-mingw64 script: - meson setup build --cross-file=/usr/share/meson/cross/x86_64-w64-mingw32.ini -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test mingw64_rel: image: lv2plugin/debian-mingw64 script: - meson setup build --cross-file=/usr/share/meson/cross/x86_64-w64-mingw32.ini -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test mac_dbg: tags: [macos] script: - meson setup build -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test mac_rel: tags: [macos] script: - meson setup build -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test win_dbg: tags: [windows,meson] script: - meson setup build -Dbuildtype=debug -Dstrict=true -Dwerror=true - ninja -C build test win_rel: tags: [windows,meson] script: - meson setup build -Dbuildtype=release -Dstrict=true -Dwerror=true - ninja -C build test wasm_dbg: image: lv2plugin/debian-wasm script: - meson setup build --cross-file=/usr/share/meson/cross/wasm.ini -Dbuildtype=debug -Dstrict=true -Dwerror=true -Ddefault_library=static - ninja -C build test wasm_rel: image: lv2plugin/debian-wasm script: - meson setup build --cross-file=/usr/share/meson/cross/wasm.ini -Dbuildtype=release -Dstrict=true -Dwerror=true -Ddefault_library=static - ninja -C build test pages: script: - mkdir -p .public - mv build/meson-logs/coveragereport/ .public/coverage - mv .public public needs: - x64_dbg artifacts: paths: - public only: - main