From 0074a0394eccb492140b5cc6bf7670147a29633e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 6 Apr 2018 12:03:33 +0000 Subject: [PATCH] use latest stable version if aria2c (closes #8) --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cbb30c1..b586ebc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,8 +32,9 @@ aria2c: image: debian:stretch-slim script: - apt-get update - - apt-get -y install clang automake autoconf git make autopoint libtool pkg-config ccache - - git clone -q -b release-1.33.1 --depth 1 https://github.com/aria2/aria2 aria2 + - apt-get -y install clang automake autoconf git make autopoint libtool pkg-config ccache wget jq + - aria2_tag="$(wget -q -O- https://api.github.com/repos/aria2/aria2/releases/latest|jq -r '.tag_name')" + - git clone -q -b "$aria2_tag" --depth 1 https://github.com/aria2/aria2 aria2 - export CCACHE_DIR=${PWD}/ccache - cd aria2 - mkdir -p ccache