-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (47 loc) · 1.51 KB
/
build.yml
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
46
47
48
49
50
name: Build pve-qemu
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/chocrates/qemu-build:main
steps:
- uses: actions/checkout@v3
- name: Checkout Qemu
run: |
git clone git://git.proxmox.com/git/pve-qemu.git
- name: Build Qemu
if: false
run: |
pwd
ls -al
# Switch to the QEMU root directory.
cd qemu
# Prepare a native debug build.
mkdir -p bin/debug/native
cd bin/debug/native
# Configure QEMU and start the build.
../../../configure --enable-debug
make
# Return to the QEMU root directory.
cd ../../..
- name: Build pve-qemu
run: |
cd pve-qemu
mk-build-deps --install
mv debian/rules debian/rules.bak
COMMAND=$(echo "pwd && mv ../../qemu-bypass.8.1.2.patch . && patch -p1 < qemu-bypass.8.1.2.patch")
awk "1;/# guest-agent is only required for guest systems/{ print \"\t$COMMAND\" }" debian/rules.bak > debian/rules
cat debian/rules
make clean distclean
make
pwd
ls -l
- uses: actions/upload-artifact@v4
with:
name: pve-qemu-kvm-dbgsym_8.1.5-3_amd64.deb
path: pve-qemu/pve-qemu-kvm-dbgsym_8.1.5-3_amd64.deb
- uses: actions/upload-artifact@v4
with:
name: pve-qemu-kvm_8.1.5-3_amd64.deb
path: pve-qemu/pve-qemu-kvm_8.1.5-3_amd64.deb