treefmt/ci.sh
zimbatm 10e55961d6
fix the macOS builds
replace the devshell to make it work on macOS
2021-11-12 22:37:05 +01:00

13 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
# nix-shell loads the devshell making rust and all the formatters available.
set -exuo pipefail
# Quick sanity check
cargo test
# Check that no code needs reformatting. Acts as a minimal integration test.
cargo run -- --fail-on-change
# Build the nix package
nix-build --no-out-link