Skip to content

Commit

Permalink
T6758: Add build package xen-guest-agent
Browse files Browse the repository at this point in the history
The 'xen-guest-agent' could be used for XCP-NG images
  • Loading branch information
sever-sever committed Oct 3, 2024
1 parent 2b9303d commit 5ecb55d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/trigger_rebuild_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- 'scripts/package-build/waagent/**'
wide-dhcpv6:
- 'scripts/package-build/wide-dhcpv6/**'
xen-guest-agent:
- 'scripts/package-build/xen-guest-agent/**'
- name: Trigger builds for changed packages
run: |
Expand Down Expand Up @@ -196,3 +198,7 @@ jobs:
if [ "${{ steps.changes.outputs.wide-dhcpv6 }}" == "true" ]; then
trigger_build "ethtool"
fi
if [ "${{ steps.changes.outputs.xen-guest-agent }}" == "true" ]; then
trigger_build "xen-guest-agent"
fi
7 changes: 7 additions & 0 deletions scripts/package-build/xen-guest-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xen-guest-agent/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

1 change: 1 addition & 0 deletions scripts/package-build/xen-guest-agent/build.py
22 changes: 22 additions & 0 deletions scripts/package-build/xen-guest-agent/package.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[packages]]
name = "xen-guest-agent"
commit_id = "0.4.0"
scm_url = "https://gitlab.com/xen-project/xen-guest-agent"


build_cmd = """
sudo apt-get -y install --no-install-recommends libclang-dev libxen-dev
# Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --default-toolchain stable --profile default --no-modify-path
# Set PATH for Cargo
export PATH="$HOME/.cargo/bin:$PATH"
rustup update
cd xen-guest-agent
cargo update
cargo install cargo-deb
# Build deb
cargo deb
cp target/debian/*.deb ../
"""

0 comments on commit 5ecb55d

Please sign in to comment.