diff options
author | Piotr Wójcik <chocimier@tlen.pl> | 2021-05-21 22:14:56 +0000 |
---|---|---|
committer | Piotr <chocimier@tlen.pl> | 2021-05-27 19:18:38 +0000 |
commit | d06bb7e98fad403c68323482b6271512f8c6c3ae (patch) | |
tree | 21407305722c5c1d11dbacb42870f1305ec6862d | |
parent | 20fd23adbd5ce543efd11b8420f936fb3f8b0de1 (diff) | |
download | void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.tar void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.tar.gz void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.tar.bz2 void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.tar.lz void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.tar.xz void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.tar.zst void-packages-d06bb7e98fad403c68323482b6271512f8c6c3ae.zip |
workflows: fetch xbps for lint step
-rw-r--r-- | .github/workflows/build.yaml | 1 | ||||
-rwxr-xr-x | common/travis/fetch-xbps.sh | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eb96a151c59..5ca5de2244d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,6 +19,7 @@ jobs: fetch-depth: 200 - run: common/travis/fetch_upstream.sh - run: common/travis/changed_templates.sh + - run: common/travis/fetch-xbps.sh - run: common/travis/fetch-xtools.sh - run: common/travis/xlint.sh # GitHub Action create a merge commit, ignore it diff --git a/common/travis/fetch-xbps.sh b/common/travis/fetch-xbps.sh new file mode 100755 index 00000000000..5a4e458cf56 --- /dev/null +++ b/common/travis/fetch-xbps.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# fetch-xbps.sh + +command -v xbps-uhelper >/dev/null && exit +TAR=tar +command -v bsdtar >/dev/null && TAR=bsdtar +ARCH=$(uname -m)-musl +VERSION=0.59_5 +URL="https://alpha.de.repo.voidlinux.org/static/xbps-static-static-${VERSION}.${ARCH}.tar.xz" +FILE=${URL##*/} + +mkdir -p /tmp/bin + +/bin/echo -e '\x1b[32mInstalling xbps...\x1b[0m' +if command -v wget >/dev/null; then + wget -q -O "$FILE" "$URL" || exit 1 +else + curl -s -o "$FILE" "$URL" || exit 1 +fi + +$TAR xf "$FILE" -C /tmp/bin --strip-components=3 ./usr/bin || exit 1 |