From 399a844150225388f96d20013d8e0223c95a9ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Wed, 23 Jun 2021 23:11:13 +0200 Subject: .github/workflows: prepare container for xbps-cycles --- .github/workflows/cron.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to '.github/workflows/cron.yml') diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index c87446743fe..c284857efcb 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -15,6 +15,23 @@ jobs: process-only: 'prs' cycles: runs-on: ubuntu-latest + container: + image: 'ghcr.io/void-linux/xbps-src-masterdir:20210313rc01-x86_64-musl' steps: - - run: apt-get install -y python3-networkx + - name: Prepare container + run: | + # 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 script dependencies + xbps-install -y python3-networkx + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Create hostrepo and prepare masterdir + run: | + ln -s "$(pwd)" /hostrepo && + common/travis/set_mirror.sh && + common/travis/prepare.sh - run: common/scripts/xbps-cycles.py -- cgit v1.2.3