.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'
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