add ci steps for building zig
2 files changed, 27 insertions(+), 0 deletions(-)
.circleci/config.yml+10
| ... | ... | @@ -20,4 +20,14 @@ jobs: |
| 20 | 20 | - store_artifacts: |
| 21 | 21 | path: ./bin/ |
| 22 | 22 | 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 | |
| 23 | 33 | - run: ./make_release.sh |
download_zig.sh created+17
| ... | ... | @@ -0,0 +1,17 @@ |
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -x |
| 4 | set -e |
| 5 | |
| 6 | os="linux" |
| 7 | arch="x86_64" |
| 8 | version="$1" |
| 9 | |
| 10 | dir="zig-$os-$arch-$version" |
| 11 | file="$dir.tar.xz" |
| 12 | |
| 13 | cd ~ |
| 14 | apk add wget tar |
| 15 | wget https://ziglang.org/download/$version/$file |
| 16 | tar -vxf $file |
| 17 | ln -s ~/$dir/zig /bin |