From c52a26cd8e37f9bd3aeb593b22f983db7dbebbe5 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 25 Jan 2024 19:49:46 +0000 Subject: [PATCH] CI: Copy patch directives into synthetic crate --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c83475421..954e2a603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,10 @@ jobs: run: cargo init --lib ci-build - name: Copy Rust version into synthetic crate run: cp crates/rust-toolchain.toml ci-build/ + - name: Copy patch directives into synthetic crate + run: | + echo "[patch.crates-io]" >> ./ci-build/Cargo.toml + cat ./crates/Cargo.toml | sed "0,/.\+\(patch.crates.\+\)/d" >> ./ci-build/Cargo.toml - name: Add zcash_proofs as a dependency of the synthetic crate working-directory: ./ci-build run: cargo add --no-default-features --path ../crates/zcash_proofs