Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 36 additions & 5 deletions .github/buildomat/jobs/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,43 @@
#: target = "ubuntu-22.04"
#: rust_toolchain = true
#: output_rules = [
#: "/out/*",
#: "=/out/lldp-0.1.0.deb",
#: "=/out/lldp-0.1.0.deb.sha256.txt",
#: "=/out/lldpd",
#: "=/out/lldpd.sha256.txt",
#: "=/out/lldpadm",
#: "=/out/lldpadm.sha256.txt",
#: ]
#:
#: [[publish]]
#: series = "linux"
#: name = "lldp-0.1.0.deb"
#: from_output = "lldp-0.1.0.deb"
#: from_output = "/out/lldp-0.1.0.deb"
#:
#: [[publish]]
#: series = "linux"
#: name = "lldp-0.1.0.deb.sha256.txt"
#: from_output = "lldp-0.1.0.deb.sha256.txt"
#: from_output = "/out/lldp-0.1.0.deb.sha256.txt"
#:
#: [[publish]]
#: series = "linux"
#: name = "lldpd"
#: from_output = "/out/lldpd"
#:
#: [[publish]]
#: series = "linux"
#: name = "lldpd.sha256.txt"
#: from_output = "/out/lldpd.sha256.txt"
#:
#: [[publish]]
#: series = "linux"
#: name = "lldpadm"
#: from_output = "/out/lldpadm"
#:
#: [[publish]]
#: series = "linux"
#: name = "lldpadm.sha256.txt"
#: from_output = "/out/lldpadm.sha256.txt"
#:

set -o errexit
Expand All @@ -37,11 +62,17 @@ sudo apt update -y
sudo apt install -y libpcap-dev libclang-dev libssl-dev pkg-config

banner "Build"
cargo build --release
cargo build --release --verbose --features "dendrite"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we enabling dendrite features on linux, when dendrite only runs on helios?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lldpd daemon is being added to the control plane test context in omicron#9533. The control plane test context runs dendrite stub on every OS. Currently, the logic in the control plane test context assumes that the startup command for each daemon will be the same on every OS, so adding the dendrite feature to the linux binary allows us to start them both with the same command as well as get the same behavior from them on both operating systems in the testing and development environment.


banner "Artifacts"
pfexec mkdir -p /out
pfexec chown "$UID" /out

cp target/release/lldpadm /out/
digest /out/lldpadm > /out/lldpadm.sha256.txt
cp target/release/lldpd /out/
digest /out/lldpd > /out/lldpd.sha256.txt

cargo xtask dist --release
cp lldp-0.1.0.deb /out/
sha256sum lldp-0.1.0.deb | sed "s/ .*//" > /out/lldp-0.1.0.deb.sha256.txt
digest lldp-0.1.0.deb > /out/lldp-0.1.0.deb.sha256.txt
Loading