Commit c5622d89 authored by Janne Grunau's avatar Janne Grunau

CI: use meson's '--werror' instead of CFLAGS

This catches the redefinition of _WIN32_WINNT warnings in the windows
jobs.
parent 32accaa4
...@@ -9,7 +9,7 @@ build-debian: ...@@ -9,7 +9,7 @@ build-debian:
- debian - debian
- amd64 - amd64
script: script:
- env CFLAGS='-Werror' meson build --buildtype release - meson build --buildtype release --werror
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -20,7 +20,7 @@ build-debian-static: ...@@ -20,7 +20,7 @@ build-debian-static:
- debian - debian
- amd64 - amd64
script: script:
- env CFLAGS='-Werror' meson build --buildtype release --default-library static - meson build --buildtype release --default-library static --werror
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -30,12 +30,12 @@ build-win32: ...@@ -30,12 +30,12 @@ build-win32:
tags: tags:
- win32 - win32
script: script:
- env CFLAGS='-Werror' - meson build --buildtype release
meson build --buildtype release --werror
--libdir lib --libdir lib
--prefix "$(pwd)/build/dav1d_install" --prefix "$(pwd)/build/dav1d_install"
--cross-file /opt/crossfiles/i686-w64-mingw32.meson --cross-file /opt/crossfiles/i686-w64-mingw32.meson
-Ddefault_library=both -Ddefault_library=both
- ninja -C build - ninja -C build
- ninja -C build install - ninja -C build install
artifacts: artifacts:
...@@ -50,12 +50,12 @@ build-win64: ...@@ -50,12 +50,12 @@ build-win64:
tags: tags:
- win64 - win64
script: script:
- env CFLAGS='-Werror' - meson build --buildtype release
meson build --buildtype release --werror
--libdir lib --libdir lib
--prefix "$(pwd)/build/dav1d_install" --prefix "$(pwd)/build/dav1d_install"
--cross-file /opt/crossfiles/x86_64-w64-mingw32.meson --cross-file /opt/crossfiles/x86_64-w64-mingw32.meson
-Ddefault_library=both -Ddefault_library=both
- ninja -C build - ninja -C build
- ninja -C build install - ninja -C build install
artifacts: artifacts:
...@@ -70,7 +70,7 @@ build-debian-aarch64: ...@@ -70,7 +70,7 @@ build-debian-aarch64:
- aarch64 - aarch64
- debian - debian
script: script:
- env CFLAGS='-Werror' meson build --buildtype release - meson build --buildtype release --werror
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -90,7 +90,7 @@ build-macos: ...@@ -90,7 +90,7 @@ build-macos:
tags: tags:
- macos - macos
script: script:
- env CFLAGS='-Werror' meson build --buildtype release -Ddefault_library=both - meson build --buildtype release -Ddefault_library=both --werror
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -101,7 +101,7 @@ build-debian-werror: ...@@ -101,7 +101,7 @@ build-debian-werror:
- aarch64 - aarch64
- debian - debian
script: script:
- env CC='clang-7' CFLAGS='-Werror' meson build --buildtype debug - env CC='clang-7' meson build --buildtype debug --werror
- ninja -C build - ninja -C build
test-debian: test-debian:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment