summaryrefslogtreecommitdiff
path: root/olamic-run
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-28 14:48:30 -0700
committerJulian Blake Kongslie2021-03-28 14:48:30 -0700
commit7a1311c16c36b18a66a5ee43511fb9ad5093ec3a (patch)
tree09df63644ac11dee4f2de25d476437e73fcdea84 /olamic-run
downloadnoncpu-7a1311c16c36b18a66a5ee43511fb9ad5093ec3a.tar.xz
Initial commit.
Diffstat (limited to '')
-rw-r--r--olamic-run12
1 files changed, 12 insertions, 0 deletions
diff --git a/olamic-run b/olamic-run
new file mode 100644
index 0000000..24b72b1
--- /dev/null
+++ b/olamic-run
@@ -0,0 +1,12 @@
1# vim: set ft=bash :
2
3make
4
5if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then
6 INSTALL_DIR=/srv/olamic/artifacts/noncpu/"${BASH_REMATCH[1]}"
7fi
8
9if [[ "${INSTALL_DIR:-}" != "" ]]; then
10 mkdir -p "${INSTALL_DIR}"
11 git archive -o "${INSTALL_DIR}/noncpu.zip" @
12fi