From aafc2e0981193fb76891a09df671e1114590de4c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 6 Mar 2022 16:06:00 +0000 Subject: [PATCH] Build with CI jobs with -Dwerror=true Currently the CI jobs only builds on releases, which catches some of the fallout. We might get a proper CI at some point in the future. v2: pass the -Dwerror=true directly into build.sh Signed-off-by: Emil Velikov --- .github/workflows/build-package.yml | 4 ++-- build.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 0968e867..490846a0 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -41,7 +41,7 @@ jobs: - name: Build release package run: | ./build-source.sh - ./build.sh build package release + ./build.sh build -Dwerror=true package release - name: Upload release if: ${{ github.event_name == 'release' && github.event.action == 'published' }} env: @@ -63,4 +63,4 @@ jobs: with: name: MangoHud-${{steps.git-vars.outputs.artifact-metadata}} path: ${{runner.workspace}}/MangoHud/build/MangoHud-*tar.gz - retention-days: 30 \ No newline at end of file + retention-days: 30 diff --git a/build.sh b/build.sh index 3971d26c..a2342cb8 100755 --- a/build.sh +++ b/build.sh @@ -143,6 +143,7 @@ dependencies() { configure() { dependencies git submodule update --init --depth 50 + CONFIGURE_OPTS="-Dwerror=true" if [[ ! -f "build/meson64/build.ninja" ]]; then meson build/meson64 --libdir lib/mangohud/lib64 --prefix /usr -Dappend_libdir_mangohud=false -Dld_libdir_prefix=true -Dld_libdir_abs=true $@ ${CONFIGURE_OPTS} fi