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