Skip to content

Commit 5c9fd1a

Browse files
chee-chyuanclaude
andcommitted
chore(ci): install BSC system dependencies in workflow jobs
Add liburing-dev, pkg-config, and libclang-dev install steps to jobs that build with BSC features (rocksdb, io-uring). Upstream paradigmxyz/reth omits these since it does not use rocksdb or io-uring. Also add rustfmt component to nightly toolchain steps where librocksdb-sys build script requires it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a5a6c72 commit 5c9fd1a

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
persist-credentials: false
4242
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
4343
- uses: dtolnay/rust-toolchain@stable
44+
- name: Install system dependencies
45+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
4446
- name: Install Geth
4547
run: .github/scripts/install_geth.sh
4648
- uses: taiki-e/install-action@1f2425cdb59f8fffb99ee16a5968edf6f57a2b93 # v2.75.24

.github/workflows/lint.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ jobs:
5959
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
6060
- uses: dtolnay/rust-toolchain@nightly
6161
with:
62-
components: clippy
62+
components: clippy, rustfmt
6363
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6464
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
6565
with:
6666
cache-on-failure: true
67+
- name: Install system dependencies
68+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
6769
- run: cargo clippy --workspace --lib --examples --tests --benches --all-features --locked
6870
env:
6971
RUSTFLAGS: -D warnings
@@ -141,6 +143,8 @@ jobs:
141143
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
142144
with:
143145
cache-on-failure: true
146+
- name: Install system dependencies
147+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
144148
- run: cargo hack check --workspace --partition ${{ matrix.partition }}/${{ matrix.total_partitions }}
145149

146150
msrv:
@@ -177,10 +181,14 @@ jobs:
177181
persist-credentials: false
178182
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
179183
- uses: dtolnay/rust-toolchain@nightly
184+
with:
185+
components: rustfmt
180186
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
181187
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
182188
with:
183189
cache-on-failure: true
190+
- name: Install system dependencies
191+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
184192
- run: cargo docs --document-private-items
185193
env:
186194
# Keep in sync with ./book.yml:jobs.build
@@ -217,10 +225,14 @@ jobs:
217225
persist-credentials: false
218226
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
219227
- uses: dtolnay/rust-toolchain@nightly
228+
with:
229+
components: rustfmt
220230
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
221231
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
222232
with:
223233
cache-on-failure: true
234+
- name: Install system dependencies
235+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
224236
- uses: taiki-e/install-action@1f2425cdb59f8fffb99ee16a5968edf6f57a2b93 # v2.75.24
225237
with:
226238
tool: cargo-udeps
@@ -238,6 +250,8 @@ jobs:
238250
persist-credentials: false
239251
- uses: rui314/setup-mold@725a8794d15fc7563f59595bd9556495c0564878 # v1
240252
- uses: dtolnay/rust-toolchain@nightly
253+
with:
254+
components: rustfmt
241255
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
242256
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
243257
with:

.github/workflows/unit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
4646
with:
4747
cache-on-failure: true
48+
- name: Install system dependencies
49+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
4850
- uses: taiki-e/install-action@1f2425cdb59f8fffb99ee16a5968edf6f57a2b93 # v2.75.24
4951
with:
5052
tool: nextest
@@ -121,6 +123,8 @@ jobs:
121123
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
122124
with:
123125
cache-on-failure: true
126+
- name: Install system dependencies
127+
run: sudo apt-get update && sudo apt-get install -y liburing-dev pkg-config libclang-dev
124128
- name: Run doctests
125129
run: cargo test --doc --workspace --all-features
126130

0 commit comments

Comments
 (0)