about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-11-30T23·16-0500
committerGriffin Smith <root@gws.fyi>2019-11-30T23·16-0500
commit0b22bb099c9f2254d16784e5897b18e9e410c2fa (patch)
tree295a1781a95e6f435b7c5469de13144fbace9a74 /.github
parent97a5c61f28ba98728bab390e0ea745edfbea7103 (diff)
Fail on all warnings in CI
All the undefineds are gone, so it's time to enable -Werror in CI.
Diffstat (limited to '.github')
-rwxr-xr-x.github/actions/nix-build/entrypoint.sh2
-rw-r--r--.github/workflows/haskell.yml2
2 files changed, 2 insertions, 2 deletions
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