Move from make to just

This commit is contained in:
Dave Gallant
2024-03-13 21:09:56 -04:00
parent 54618b8fd6
commit 3212a61ffb
6 changed files with 50 additions and 41 deletions

View File

@@ -2,9 +2,18 @@
set -euo pipefail
arch=$(uname -s)
git pull
update_msg=$(nix flake update 2>&1 | grep -v 'warning:')
make
if [[ $arch == "Linux" ]]; then
just build-linux
elif [[ $arch == "Darwin" ]]; then
just build-darwin
else
echo "Unsupported OS: $arch"
exit 1
fi
git add .
git commit -S -m "nix flake update: $(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')