From a227f9fe22369a3bec2ba2089891df3c53752313 Mon Sep 17 00:00:00 2001 From: timvisee Date: Sun, 3 Mar 2019 18:49:37 +0100 Subject: [PATCH] Install dependencies for GitLab release job on CI --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef9644c..eec44bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -163,6 +163,10 @@ github-release: - build-x86_64-linux-musl before_script: [] script: + # Install dependencies + - apt-get update + - apt-get install -y curl wget tar + # Download github-release binary - wget $(curl -s https://api.github.com/repos/tfausak/github-release/releases/latest | grep 'browser_' | cut -d\" -f4 | grep 'linux') -O github-release.tar.gz - tar zxvf github-release.tar.gz @@ -182,16 +186,16 @@ pkg-aur: script: - cd ./pkg/aur - # Update version number in PKGBUILD + # Update version number in PKGBUILD - VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-) - echo "Determined binary version number 'v$VERSION', updating PKGBUILD..." - sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i PKGBUILD - # Install dependencies + # Install dependencies - echo "Installing required build packages..." - pacman -Syu --noconfirm sudo base-devel binutils openssh rust cargo cmake git openssl - # Make AUR package + # Make AUR package - echo "Making AUR package..." - mkdir -p /.cargo - chmod -R 777 /.cargo