summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rwxr-xr-xdownload-zig.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index b4adebe..bd8c899 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,8 @@ language: bash
2os: 2os:
3 - linux 3 - linux
4install: 4install:
5 - wget https://ziglang.org/builds/zig-linux-x86_64-master.tar.xz --no-cache 5 - chmod -R a+x download-zig.sh
6 - tar -xf zig-linux-* 6 - ./download-zig.sh
7git: 7git:
8 depth: false 8 depth: false
9script: 9script:
diff --git a/download-zig.sh b/download-zig.sh
new file mode 100755
index 0000000..0f353b1
--- /dev/null
+++ b/download-zig.sh
@@ -0,0 +1,3 @@
1#!/bin/sh
2curl "$(curl https://ziglang.org/download/index.json | grep x86_64-linux -A 1 | head -n 2 | grep tarball | sed -E 's/.*"tarball": "([^"]*)".*/\1/g')" > zig.tar.xz
3tar -xf zig.tar.xz \ No newline at end of file