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