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:
parent
342ea6a60b
commit
59e2fc5a85
1 changed files with 5 additions and 2 deletions
5
Makefile
5
Makefile
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue