.github/workflows: prepare container for xbps-cycles

This commit is contained in:
Piotr Wójcik 2021-06-23 23:11:13 +02:00 committed by Piotr
parent 4eb9566121
commit 399a844150

View file

@ -15,6 +15,23 @@ jobs:
process-only: 'prs' process-only: 'prs'
cycles: cycles:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: 'ghcr.io/void-linux/xbps-src-masterdir:20210313rc01-x86_64-musl'
steps: 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 - run: common/scripts/xbps-cycles.py