summaryrefslogtreecommitdiff
path: root/olamic-run
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-23 21:22:21 -0700
committerJulian Blake Kongslie2021-03-23 21:33:37 -0700
commit60a8991b751ee6df04976d846450759763cf644f (patch)
tree68b0a3a2212c74048de3f60b22e97fe4955a4318 /olamic-run
parentChanges for Windows-friendly builds. (diff)
downloadtoycpu-60a8991b751ee6df04976d846450759763cf644f.tar.xz
Adding olamic hook to autobuild source archives.
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..20a745f
--- /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/toycpu/"${BASH_REMATCH[1]}"
7fi
8
9if [[ "${INSTALL_DIR:-}" != "" ]]; then
10 mkdir -p "${INSTALL_DIR}"
11 git archive -o "${INSTALL_DIR}/toycpu.zip" @
12fi