Skip to content

run example

run example #69

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: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: 1.21.0
- 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: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
path: src/little-vm-helper
- 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