Add basic GitHub Action

This commit is contained in:
2023-12-20 10:29:05 +01:00
commit f7863d079e
4 changed files with 78 additions and 0 deletions

17
compile.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -euo pipefail
files="$1"
compiler="$2"
options="$3"
for f in $files; do
if [-f "$f" ]; then
echo "Compiling '$f'.."
$compiler $options $f
$compiler $options $f # Run twice to make sure everything is OK
else
echo "'$f' not found!"
fi
done