Skip to content

run example

run example #122

Workflow file for this run

name: run example
on:
# Allow to run manually via GitHub UI
workflow_dispatch: {}
# Additionally run weekly
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [ ubuntu-22.04 ]
steps:
- name: Checkout code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
path: src/little-vm-helper
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: "src/little-vm-helper/go.mod"
- name: Install dependencies
run: |
sudo apt-get -qy update
# we need this to build debian images
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9
sudo apt-get -qy install mmdebstrap libguestfs-tools qemu-utils extlinux git fakeroot build-essential xz-utils libssl-dev bc flex libelf-dev bison pahole
- name: Make kernel accessible
run: |
sudo chmod go+rX -R /boot/
- name: Run example
env:
LIBGUESTFS_DEBUG: 0
LIBGUESTFS_TRACE: 0
run: |
cd src/little-vm-helper
./scripts/example.sh