ensure make ci is consistent with system

Sadly I can't see of a way to pass your current system to `nix build`.
So, let's just support x86 64-bit Linux and tell the user how to
use `nix build` directly.
This commit is contained in:
Emily Martins 2022-08-24 17:21:25 +02:00
parent 342ea6a60b
commit 59e2fc5a85

View file

@ -98,4 +98,7 @@ test: requires_nix_shell
build: requires_nix_shell build: requires_nix_shell
cabal build -j$(THREADS) cabal build -j$(THREADS)
ci: format_check lint build bench_check test haddock ci:
@ [[ "$$(uname -sm)" == "Linux x86_64" ]] \
&& (nix build .#check.x86_64-linux) \
|| (echo "CI only builds on Linux x86_64. Your system is $$(uname -sm). If you want to build it for your system, use 'nix build .#check.<your system>' instead." && false)