Skip to content

Commit 0378e68

Browse files
committed
Update CI cbindgen install script to work with MSRV
1 parent f13cfe6 commit 0378e68

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828
- name: Install cbindgen
29-
run: cargo install --version 0.20.0 cbindgen
29+
run: |
30+
git clone https://github.com/eqrion/cbindgen
31+
cd cbindgen/
32+
git checkout v0.20.0
33+
cargo update -p indexmap --precise "1.6.2" --verbose
34+
cargo install --locked --path .
3035
- name: Checkout Rust-Lightning and LDK-C-Bindings git
3136
run: |
3237
git config --global user.email "[email protected]"
@@ -110,7 +115,12 @@ jobs:
110115
with:
111116
fetch-depth: 0
112117
- name: Install cbindgen
113-
run: cargo install --version 0.20.0 cbindgen
118+
run: |
119+
git clone https://github.com/eqrion/cbindgen
120+
cd cbindgen/
121+
git checkout v0.20.0
122+
cargo update -p indexmap --precise "1.6.2" --verbose
123+
cargo install --locked --path .
114124
- name: Checkout Rust-Lightning and LDK-C-Bindings git
115125
run: |
116126
git config --global user.email "[email protected]"
@@ -160,7 +170,12 @@ jobs:
160170
with:
161171
fetch-depth: 0
162172
- name: Install cbindgen
163-
run: cargo install --version 0.20.0 cbindgen
173+
run: |
174+
git clone https://github.com/eqrion/cbindgen
175+
cd cbindgen/
176+
git checkout v0.20.0
177+
cargo update -p indexmap --precise "1.6.2" --verbose
178+
cargo install --locked --path .
164179
- name: Checkout Rust-Lightning and LDK-C-Bindings git
165180
run: |
166181
git config --global user.email "[email protected]"
@@ -263,7 +278,7 @@ jobs:
263278
- name: Install cbindgen
264279
run: |
265280
. $HOME/.cargo/env
266-
cargo install --version 0.20.0 cbindgen
281+
cargo install cbindgen
267282
- name: Checkout Rust-Lightning and LDK-C-Bindings git
268283
run: |
269284
git config --global user.email "[email protected]"
@@ -343,7 +358,7 @@ jobs:
343358
with:
344359
fetch-depth: 0
345360
- name: Install cbindgen
346-
run: cargo install --version 0.20.0 cbindgen
361+
run: cargo install cbindgen
347362
- name: Checkout Rust-Lightning and LDK-C-Bindings git
348363
run: |
349364
git config --global user.email "[email protected]"

0 commit comments

Comments
 (0)