From 0b22bb099c9f2254d16784e5897b18e9e410c2fa Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 30 Nov 2019 18:16:48 -0500 Subject: Fail on all warnings in CI All the undefineds are gone, so it's time to enable -Werror in CI. --- .github/actions/nix-build/entrypoint.sh | 2 +- .github/workflows/haskell.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/actions/nix-build/entrypoint.sh b/.github/actions/nix-build/entrypoint.sh index 4499660edd32..cb7aca541a3f 100755 --- a/.github/actions/nix-build/entrypoint.sh +++ b/.github/actions/nix-build/entrypoint.sh @@ -16,7 +16,7 @@ file="$1" [ ! -e "$file" ] && echo "File $file not exist!" && exit 1 echo "Building all attrs in $file..." -nix-build --no-link ${QUIET_ARG} "$file" +nix-build --no-link ${QUIET_ARG} "$file" "${@:2}" echo "Copying build closure to $(pwd)/store..." mapfile -t storePaths < <(nix-build ${QUIET_ARG} --no-link "$file" | grep -v cache-deps) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index e1a57d44005e..df82de3e8caf 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -11,5 +11,5 @@ jobs: - uses: actions/checkout@v1 - name: Nix Build with: - args: default.nix + args: default.nix --arg failOnWarnings true uses: ./.github/actions/nix-build -- cgit 1.4.1