Skip to content
Draft
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"

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