Skip to content

Commit a48676c

Browse files
committed
ci(build): specify verison and deps
1 parent 49e58f9 commit a48676c

4 files changed

Lines changed: 27 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
submodules: recursive
3131
- uses: dtolnay/rust-toolchain@stable
32-
- run: sudo apt update && sudo apt install ethtool iputils-ping iperf iperf3 pkg-config m4 clang llvm libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev -y
32+
- run: sudo apt update && sudo apt install ethtool iputils-ping iperf iperf3 pkg-config m4 clang llvm libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev autoconf automake autopoint libtool -y
3333
- uses: Swatinem/rust-cache@v2
3434
- run: cargo check --workspace --all-features
3535
- run: cargo build --workspace --all-features
@@ -45,7 +45,7 @@ jobs:
4545
- uses: dtolnay/rust-toolchain@stable
4646
with:
4747
components: clippy
48-
- run: sudo apt update && sudo apt install ethtool iputils-ping iperf iperf3 pkg-config m4 clang llvm libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev -y
48+
- run: sudo apt update && sudo apt install ethtool iputils-ping iperf iperf3 pkg-config m4 clang llvm libelf-dev libpcap-dev gcc-multilib libnftnl-dev libmnl-dev autoconf automake autopoint libtool -y
4949
- uses: Swatinem/rust-cache@v2
5050
- run: cargo clippy --workspace --all-features --tests -- -Dwarnings
5151
# - uses: giraffate/clippy-action@v1

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,19 @@ nix = { workspace = true }
110110
once_cell = { workspace = true }
111111
paste = "1.0.14"
112112
rand = { workspace = true }
113-
rattan-core = { path = "rattan-core", features = ["serde"] }
114-
rattan-log = { path = "rattan-log" }
113+
rattan-core = { path = "rattan-core", features = ["serde"], version = "0.1.0" }
114+
rattan-log = { path = "rattan-log", version = "0.1.0" }
115115
serde = { workspace = true }
116116
serde_json = "1.0.114"
117-
shadow-rs = { version = "1.3.0", default-features = false }
117+
shadow-rs = { version = "1.7.0", default-features = false }
118118
tokio = { workspace = true }
119119
toml = "1.0.1"
120120
tracing = { workspace = true }
121121
tracing-appender = "0.2.3"
122122
tracing-subscriber = { workspace = true }
123123

124124
[build-dependencies]
125-
shadow-rs = "1.3.0"
125+
shadow-rs = "1.7.0"
126126

127127
[features]
128128
default = ["first-packet"]

dist-workspace.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@ allow-dirty = ["ci"]
2222
# Path that installers should place binaries in
2323
install-path = "CARGO_HOME"
2424

25+
[dist.dependencies.apt]
26+
ethtool = "*"
27+
iputils-ping = "*"
28+
iperf = "*"
29+
iperf3 = "*"
30+
pkg-config = "*"
31+
m4 = "*"
32+
clang = "*"
33+
llvm = "*"
34+
libelf-dev = "*"
35+
libpcap-dev = "*"
36+
gcc-multilib = "*"
37+
libnftnl-dev = "*"
38+
libmnl-dev = "*"
39+
autoconf = "*"
40+
automake = "*"
41+
autopoint = "*"
42+
libtool = "*"
43+
2544
[dist.github-custom-runners]
2645
global = "ubuntu-latest"
2746
x86_64-unknown-linux-gnu = "ubuntu-latest"

rattan-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ once_cell = { workspace = true }
5151
parking_lot = { workspace = true }
5252
pcap-file = { workspace = true }
5353
rand = { workspace = true }
54-
rattan-env = { path = "../rattan-env" }
55-
rattan-log = { path = "../rattan-log" }
54+
rattan-env = { path = "../rattan-env", version = "0.1.0" }
55+
rattan-log = { path = "../rattan-log", version = "0.1.0" }
5656
regex = "1.7.3"
5757
serde = { workspace = true, optional = true }
5858
serde_json = { version = "1.0.96", optional = true }

0 commit comments

Comments
 (0)