From 26753d8f41786f4f9681b692975f1d006a1acb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 5 Nov 2023 19:09:39 +0100 Subject: [PATCH] ci --- .github/workflows/build.yml | 3 +++ ci/build-tumbleweed.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddbfd90b776db..91a5cb3d5771a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -131,6 +131,8 @@ jobs: env: CC: "${{ matrix.config.cc }}" CXX: "${{ matrix.config.cxx }}" + CFLAGS: "${{ matrix.config.cflags }}" + UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1" strategy: matrix: config: @@ -141,6 +143,7 @@ jobs: - { cc: "clang", cxx: "clang++", + clangs: "-fno-sanitize=function" } steps: - uses: actions/checkout@v3 diff --git a/ci/build-tumbleweed.sh b/ci/build-tumbleweed.sh index 03e8d1ac1e558..cbd5f43c461d0 100755 --- a/ci/build-tumbleweed.sh +++ b/ci/build-tumbleweed.sh @@ -4,7 +4,7 @@ set -e meson setup build \ --werror \ -Dlibplacebo:werror=false \ - -Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \ + -Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations $CFLAGS" \ -Db_sanitize=address,undefined \ -Dcdda=enabled \ -Ddvbin=enabled \ @@ -16,5 +16,5 @@ meson setup build \ -Dshaderc=enabled \ -Dtests=true \ -Dvulkan=enabled -meson compile -C build +ninja -C build --verbose ./build/mpv -v --no-config