From 7a1311c16c36b18a66a5ee43511fb9ad5093ec3a Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 28 Mar 2021 14:48:30 -0700 Subject: Initial commit. --- olamic-run | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 olamic-run (limited to 'olamic-run') diff --git a/olamic-run b/olamic-run new file mode 100644 index 0000000..24b72b1 --- /dev/null +++ b/olamic-run @@ -0,0 +1,12 @@ +# vim: set ft=bash : + +make + +if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then + INSTALL_DIR=/srv/olamic/artifacts/noncpu/"${BASH_REMATCH[1]}" +fi + +if [[ "${INSTALL_DIR:-}" != "" ]]; then + mkdir -p "${INSTALL_DIR}" + git archive -o "${INSTALL_DIR}/noncpu.zip" @ +fi -- cgit v1.2.3