Skip to content

mininet-vm-build

mininet-vm-build #273

Workflow file for this run

name: mininet-vm-build
on:
workflow_dispatch:
push:
pull_request:
# Nightly build at 1:15 UTC
schedule:
- cron: '01 15 * * *'
jobs:
build:
name: Mininet VM Build
runs-on: ubuntu-latest
strategy:
matrix:
branch: [master, 2.3.0]
flavor: [focal64server, bionic64server, xenial64server, xenial32server]
env:
BRANCH: ${{ matrix.branch }}
FLAVOR: ${{ matrix.flavor }}
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 2.x
- name: Install VM build dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y -qq install \
kvmtool cloud-utils genisoimage qemu-kvm qemu-utils \
moreutils mtools
python -m pip install pexpect
sudo kvm-ok || echo "kvm-ok failed"
- name: Check out Mininet
run: git clone https://github.com/mininet/mininet
- name: Build Ubuntu ${{ matrix.flavor }} VM
run: |
python mininet/util/vm/build.py -v -b master -z --nokvm ${{ matrix.flavor }}
(pushd mn* && sha256sum * > sha256sum-$BRANCH-$FLAVOR.txt)
- name: Upload Mininet VM
uses: actions/upload-artifact@v2
with:
name: mininet-vm-${{ matrix.branch}}-${{ matrix.flavor }}
path: mn-*/*.zip
- name: Upload Mininet VM Checksums
uses: actions/upload-artifact@v2
with:
name: mininet-sha256sum-${{ matrix.branch}}-${{ matrix.flavor }}
path: mn-*/*.txt