Build pve-qemu #30
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
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 | |
COMMAND=$(echo "mv ../qemu-bypass.8.1.2.patch . && patch -p1 < qemu-bypass.8.1.2.patch") | |
sed -i "/# guest-agent is only required for guest systems/i$COMMAND" debian/rules | |
make clean distclean | |
make | |
ls -l |