lots o fixes
Some checks failed
Build / build (push) Successful in 9m50s
Publish Image / publish (push) Failing after 49s
Test / build (push) Successful in 10m55s

This commit is contained in:
2024-04-01 18:18:45 -04:00
parent fe33fda0ab
commit 862119e90e
44 changed files with 326 additions and 170 deletions

26
compare-branch.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
if [ $# -lt 1 ]; then
echo "Usage: $(basename "$0") <branch>"
exit 1
fi
compareWith="$1"
currentBranch="$(git branch --show-current)"
N="${2:-35}"
if [ -n "$(git status --porcelain)" ]; then
echo "$currentBranch is not clean, please stash or commit your changes!"
exit 1
fi
hyperfine \
-w 5 \
-c "git checkout $currentBranch" \
-p "make build" \
-p "git checkout $compareWith; make build" \
-n "$currentBranch" \
-n "$compareWith" \
"./monkey examples/fib.m $N" \
"./monkey examples/fib.m $N"