;ci: linux: expect linux builds to be warning free like the rest
This commit is contained in:
parent
bba77abcf6
commit
d8d236385d
@ -108,9 +108,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build with stack
|
- name: Build with stack
|
||||||
run: |
|
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' --ghc-options=-Werror 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' --ghc-options=-Werror 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-web # || (echo "ERROR: building hledger-web failed"; false)
|
||||||
|
|
||||||
- name: Run built-in unit tests
|
- name: Run built-in unit tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.github/workflows/binaries-linux-x64.yml
vendored
6
.github/workflows/binaries-linux-x64.yml
vendored
@ -61,9 +61,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build with cabal
|
- name: Build with cabal
|
||||||
run: |
|
run: |
|
||||||
cabal build --enable-executable-static hledger || (echo "ERROR: building hledger failed"; false)
|
cabal build --enable-executable-static --ghc-options=-Werror 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 --ghc-options=-Werror 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-web || (echo "ERROR: building hledger-web failed"; false)
|
||||||
|
|
||||||
- name: Gather binaries
|
- name: Gather binaries
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -33,7 +33,7 @@ RUN cabal update
|
|||||||
COPY . /hledger
|
COPY . /hledger
|
||||||
|
|
||||||
# Build static hledger binary
|
# 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
|
# Strip symbols from binary
|
||||||
RUN cp /hledger/dist-newstyle/build/arm-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger /root/ && strip /root/hledger
|
RUN cp /hledger/dist-newstyle/build/arm-linux/ghc-*/hledger-*/x/hledger/build/hledger/hledger /root/ && strip /root/hledger
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user