triviOS/.build.yml

20 lines
388 B
YAML
Raw Permalink Normal View History

2023-09-05 07:35:00 +02:00
image: nixos/23.05
sources:
- https://git.sr.ht/~fabianmv/triviOS
environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
shell: true
tasks:
2023-09-05 08:39:13 +02:00
- check-format: |
2023-09-05 07:36:54 +02:00
cd triviOS
nix fmt
git diff-index --quiet HEAD --
diff=$?
if [ "$diff" -eq 1 ]; then
echo "Invalid format."
exit 1
else
echo "Done."
fi