abandons build in favor of format checker
sadly source hut build machines are too weak
This commit is contained in:
parent
a3a2551fab
commit
ee6e523b6b
14
.build.yml
14
.build.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue