abandons build in favor of format checker

sadly source hut build machines are too weak
This commit is contained in:
Fabián Montero 2023-09-05 00:37:36 -06:00
parent a3a2551fab
commit ee6e523b6b

View file

@ -5,7 +5,15 @@ environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
shell: true
tasks:
- setup: |
- check format: |
cd triviOS
- build: |
nix build ./triviOS\#nixosConfigurations.triviOS.config.system.build.toplevel --print-build-logs
nix fmt
git diff-index --quiet HEAD --
diff=$?
if [ "$diff" -eq 1 ]; then
echo "Invalid format."
exit 1
else
echo "Done."
fi