run example #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
path: src/little-vm-helper | |
- name: Install Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.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 |