Skip to content

Commit e6b0c57

Browse files
committed
Fix cbindgen install to be MSRV-compatible with older hashbrown
1 parent ae39d0e commit e6b0c57

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ jobs:
2727
touch src/version.rs
2828
RUSTFLAGS="--cfg=c_bindings" cargo check --features std
2929
- name: Install cbindgen
30-
run: cargo install --version 0.20.0 cbindgen
30+
run: |
31+
git clone https://github.com/eqrion/cbindgen
32+
cd cbindgen/
33+
git checkout v0.20.0
34+
cargo update -p indexmap --precise "1.6.2" --verbose
35+
cargo install --locked --path .
3136
- name: Checkout Rust-Lightning git
3237
run: |
3338
git clone https://github.com/rust-bitcoin/rust-lightning
@@ -78,7 +83,7 @@ jobs:
7883
with:
7984
fetch-depth: 0
8085
- name: Install cbindgen
81-
run: cargo install --version 0.20.0 cbindgen
86+
run: cargo install cbindgen
8287
- name: Checkout Rust-Lightning git
8388
run: |
8489
git clone https://github.com/rust-bitcoin/rust-lightning

0 commit comments

Comments
 (0)