aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorclassabbyamp <void@placeviolette.net>2023-09-06 00:10:28 +0000
committerclassabbyamp <5366828+classabbyamp@users.noreply.github.com>2023-09-08 08:33:16 +0000
commita6a74669efe8cfb086dc8cccdfd093fc65a430ce (patch)
treeb4eac4b926a36736180625e0407169cf4ff4906b /.github
parent8c31764bb345ed024243ec17c076137f5814e477 (diff)
downloadvoid-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.tar
void-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.tar.gz
void-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.tar.bz2
void-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.tar.lz
void-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.tar.xz
void-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.tar.zst
void-packages-a6a74669efe8cfb086dc8cccdfd093fc65a430ce.zip
.github/workflows/build.yaml: run xlint in a void container
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yaml28
1 files changed, 22 insertions, 6 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 82463955ee9..df91320404f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -20,17 +20,33 @@ jobs:
name: Lint templates
runs-on: ubuntu-latest
- env:
- PATH: '/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin'
- XLINT: '1'
- LICENSE_LIST: common/travis/license.lst
+ container:
+ image: 'ghcr.io/void-linux/void-buildroot-musl:20230904R2'
+ env:
+ PATH: '/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin'
+ LICENSE_LIST: common/travis/license.lst
steps:
+ - name: Prepare container
+ run: |
+ # switch to repo-ci mirror
+ mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
+ sed -i 's|repo-default|repo-ci|g' /etc/xbps.d/*-repository-*.conf
+ # Sync and upgrade once, assume error comes from xbps update
+ xbps-install -Syu || xbps-install -yu xbps
+ # Upgrade again (in case there was a xbps update)
+ xbps-install -yu
+ # install tools needed for lints
+ xbps-install -y grep
- name: Clone and checkout
uses: classabbyamp/treeless-checkout-action@v1
+ - name: Create hostrepo and prepare masterdir
+ run: |
+ ln -s "$(pwd)" /hostrepo &&
+ common/travis/set_mirror.sh &&
+ common/travis/prepare.sh &&
+ common/travis/fetch-xtools.sh
- run: common/travis/changed_templates.sh
- - run: common/travis/fetch-xbps.sh
- - run: common/travis/fetch-xtools.sh
- run: common/travis/xlint.sh
# Build changed packages.