From d8d236385dcddbe98339f25862570891c4d8d066 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 30 Sep 2024 15:13:21 -1000 Subject: [PATCH] ;ci: linux: expect linux builds to be warning free like the rest --- .github/workflows/binaries-linux-x64-stack.yml | 6 +++--- .github/workflows/binaries-linux-x64.yml | 6 +++--- docker-arm32v7/Dockerfile | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/binaries-linux-x64-stack.yml b/.github/workflows/binaries-linux-x64-stack.yml index ecec10a33..cc554b424 100644 --- a/.github/workflows/binaries-linux-x64-stack.yml +++ b/.github/workflows/binaries-linux-x64-stack.yml @@ -108,9 +108,9 @@ jobs: - name: Build with stack run: | - stack --allow-different-user build --ghc-options='-optl-static -fPIC' hledger # || (echo "ERROR: building hledger failed"; false) - stack --allow-different-user build --ghc-options='-optl-static -fPIC' hledger-ui # || (echo "ERROR: building hledger-ui failed"; false) - stack --allow-different-user build --ghc-options='-optl-static -fPIC' hledger-web # || (echo "ERROR: building hledger-web failed"; false) + stack --allow-different-user build --ghc-options='-optl-static -fPIC' --ghc-options=-Werror hledger # || (echo "ERROR: building hledger failed"; false) + stack --allow-different-user build --ghc-options='-optl-static -fPIC' --ghc-options=-Werror hledger-ui # || (echo "ERROR: building hledger-ui failed"; false) + stack --allow-different-user build --ghc-options='-optl-static -fPIC' --ghc-options=-Werror hledger-web # || (echo "ERROR: building hledger-web failed"; false) - name: Run built-in unit tests run: | diff --git a/.github/workflows/binaries-linux-x64.yml b/.github/workflows/binaries-linux-x64.yml index fdeff335c..534d3c055 100644 --- a/.github/workflows/binaries-linux-x64.yml +++ b/.github/workflows/binaries-linux-x64.yml @@ -61,9 +61,9 @@ jobs: - name: Build with cabal run: | - cabal build --enable-executable-static hledger || (echo "ERROR: building hledger failed"; false) - cabal build --enable-executable-static hledger-ui || (echo "ERROR: building hledger-ui failed"; false) - cabal build --enable-executable-static hledger-web || (echo "ERROR: building hledger-web failed"; false) + cabal build --enable-executable-static --ghc-options=-Werror hledger || (echo "ERROR: building hledger failed"; false) + cabal build --enable-executable-static --ghc-options=-Werror hledger-ui || (echo "ERROR: building hledger-ui failed"; false) + cabal build --enable-executable-static --ghc-options=-Werror hledger-web || (echo "ERROR: building hledger-web failed"; false) - name: Gather binaries run: | diff --git a/docker-arm32v7/Dockerfile b/docker-arm32v7/Dockerfile index 999cafbe5..b43ed3f06 100644 --- a/docker-arm32v7/Dockerfile +++ b/docker-arm32v7/Dockerfile @@ -33,7 +33,7 @@ RUN cabal update COPY . /hledger # Build static hledger binary -RUN cd /hledger && cabal build --enable-executable-static --with-compiler=/usr/local/bin/ghc-8.10.4 hledger +RUN cd /hledger && cabal build --enable-executable-static --with-compiler=/usr/local/bin/ghc-8.10.4 --ghc-options=-Werror hledger # Strip symbols from binary RUN cp /hledger/dist-newstyle/build/arm-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger /root/ && strip /root/hledger