From 43c4e4ce158fa44bb5da1b43dc5019971d3cc6bf Mon Sep 17 00:00:00 2001 From: Jimmi HC Date: Fri, 31 May 2019 14:08:46 +0200 Subject: tried to fix travis --- .travis.yml | 4 ++-- download-zig.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 download-zig.sh diff --git a/.travis.yml b/.travis.yml index b4adebe..bd8c899 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: bash os: - linux install: - - wget https://ziglang.org/builds/zig-linux-x86_64-master.tar.xz --no-cache - - tar -xf zig-linux-* + - chmod -R a+x download-zig.sh + - ./download-zig.sh git: depth: false 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 @@ +#!/bin/sh +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 +tar -xf zig.tar.xz \ No newline at end of file -- cgit v1.2.3