Skip to content

run example

run example #132

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: src/little-vm-helper
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
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