From 0378e686b2ad96797fbf22e4c94f8399d057c5dd Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 28 Jun 2022 22:05:12 +0000 Subject: [PATCH] Update CI cbindgen install script to work with MSRV --- .github/workflows/build.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e079f01..56ec6993 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,12 @@ jobs: with: fetch-depth: 0 - name: Install cbindgen - run: cargo install --version 0.20.0 cbindgen + run: | + git clone https://github.com/eqrion/cbindgen + cd cbindgen/ + git checkout v0.20.0 + cargo update -p indexmap --precise "1.6.2" --verbose + cargo install --locked --path . - name: Checkout Rust-Lightning and LDK-C-Bindings git run: | git config --global user.email "ldk-ci@example.com" @@ -110,7 +115,12 @@ jobs: with: fetch-depth: 0 - name: Install cbindgen - run: cargo install --version 0.20.0 cbindgen + run: | + git clone https://github.com/eqrion/cbindgen + cd cbindgen/ + git checkout v0.20.0 + cargo update -p indexmap --precise "1.6.2" --verbose + cargo install --locked --path . - name: Checkout Rust-Lightning and LDK-C-Bindings git run: | git config --global user.email "ldk-ci@example.com" @@ -160,7 +170,12 @@ jobs: with: fetch-depth: 0 - name: Install cbindgen - run: cargo install --version 0.20.0 cbindgen + run: | + git clone https://github.com/eqrion/cbindgen + cd cbindgen/ + git checkout v0.20.0 + cargo update -p indexmap --precise "1.6.2" --verbose + cargo install --locked --path . - name: Checkout Rust-Lightning and LDK-C-Bindings git run: | git config --global user.email "ldk-ci@example.com" @@ -263,7 +278,7 @@ jobs: - name: Install cbindgen run: | . $HOME/.cargo/env - cargo install --version 0.20.0 cbindgen + cargo install cbindgen - name: Checkout Rust-Lightning and LDK-C-Bindings git run: | git config --global user.email "ldk-ci@example.com" @@ -343,7 +358,7 @@ jobs: with: fetch-depth: 0 - name: Install cbindgen - run: cargo install --version 0.20.0 cbindgen + run: cargo install cbindgen - name: Checkout Rust-Lightning and LDK-C-Bindings git run: | git config --global user.email "ldk-ci@example.com" -- 2.30.2