diff options
| -rw-r--r-- | .travis.yml | 4 | ||||
| -rwxr-xr-x | download-zig.sh | 3 |
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 | |||
| 2 | os: | 2 | os: |
| 3 | - linux | 3 | - linux |
| 4 | install: | 4 | install: |
| 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 |
| 7 | git: | 7 | git: |
| 8 | depth: false | 8 | depth: false |
| 9 | script: | 9 | script: |
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 | ||
| 2 | curl "$(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 | ||
| 3 | tar -xf zig.tar.xz \ No newline at end of file | ||