-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (40 loc) · 1.25 KB
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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