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 <emil.l.velikov@gmail.com>
pull/702/head
Emil Velikov 2 years ago
parent 5bb97fb2b1
commit aafc2e0981

@ -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
retention-days: 30

@ -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

Loading…
Cancel
Save