Build pve-qemu #34
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: 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 "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 | |
ls -l |