From b04538b9b205509e0d3adb016913e8e5d8f8d6c4 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 7 Jan 2025 20:02:14 +0000 Subject: [PATCH] T7026: Add script build vpp package --- .github/workflows/trigger_rebuild_packages.yml | 6 ++++++ scripts/package-build/vpp/.gitignore | 1 + scripts/package-build/vpp/build.py | 1 + scripts/package-build/vpp/package.toml | 15 +++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 scripts/package-build/vpp/.gitignore create mode 120000 scripts/package-build/vpp/build.py create mode 100644 scripts/package-build/vpp/package.toml diff --git a/.github/workflows/trigger_rebuild_packages.yml b/.github/workflows/trigger_rebuild_packages.yml index ffff020fb1..6cac73626e 100644 --- a/.github/workflows/trigger_rebuild_packages.yml +++ b/.github/workflows/trigger_rebuild_packages.yml @@ -84,6 +84,8 @@ jobs: - 'scripts/package-build/tacacs/**' telegraf: - 'scripts/package-build/telegraf/**' + vpp: + - 'scripts/package-build/vpp/**' waagent: - 'scripts/package-build/waagent/**' wide-dhcpv6: @@ -223,6 +225,10 @@ jobs: trigger_build "telegraf" fi + if [ "${{ steps.changes.outputs.vpp }}" == "true" ]; then + trigger_build "vpp" + fi + if [ "${{ steps.changes.outputs.waagent }}" == "true" ]; then trigger_build "waagent" fi diff --git a/scripts/package-build/vpp/.gitignore b/scripts/package-build/vpp/.gitignore new file mode 100644 index 0000000000..100411c469 --- /dev/null +++ b/scripts/package-build/vpp/.gitignore @@ -0,0 +1 @@ +/vpp/ diff --git a/scripts/package-build/vpp/build.py b/scripts/package-build/vpp/build.py new file mode 120000 index 0000000000..3c76af73e2 --- /dev/null +++ b/scripts/package-build/vpp/build.py @@ -0,0 +1 @@ +../build.py \ No newline at end of file diff --git a/scripts/package-build/vpp/package.toml b/scripts/package-build/vpp/package.toml new file mode 100644 index 0000000000..255c39432f --- /dev/null +++ b/scripts/package-build/vpp/package.toml @@ -0,0 +1,15 @@ +[[packages]] +name = "vpp" +commit_id = "stable/2406" +scm_url = "https://github.com/FDio/vpp" + +build_cmd = """ +make UNATTENDED=yes install-dep +make pkg-deb +cp build-root/*.deb ../ +""" + +[dependencies] +packages = [ + "llvm" +]