authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-14 02:04:53 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-14 02:04:53 -08:00
log93da59b0fa74da1791d44164e1a3dd54c214c2d9
tree6f73387322ae1fbc2e897b66aca90b0bdd681f4c
parentabceb0d034839ddb456c0c38994fdef559276a8b

add ci steps for building zig


2 files changed, 27 insertions(+), 0 deletions(-)

.circleci/config.yml+10
......@@ -20,4 +20,14 @@ jobs:
2020 - store_artifacts:
2121 path: ./bin/
2222 destination: /artifacts/
23
24 - run: ./download_zig.sh 0.7.0
25 - run: zig version
26 - run: zig env
27 - run: apk add jq grep
28 - run: ./build_all_zig.sh
29 - store_artifacts:
30 path: ./zig-cache/bin/
31 destination: /artifacts/
32
2333 - run: ./make_release.sh
download_zig.sh created+17
......@@ -0,0 +1,17 @@
1#!/bin/sh
2
3set -x
4set -e
5
6os="linux"
7arch="x86_64"
8version="$1"
9
10dir="zig-$os-$arch-$version"
11file="$dir.tar.xz"
12
13cd ~
14apk add wget tar
15wget https://ziglang.org/download/$version/$file
16tar -vxf $file
17ln -s ~/$dir/zig /bin