diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e08b0f42..9237a5c0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -94,13 +94,13 @@ jobs: steps: - uses: actions/checkout@v4 - - name: MacOS - GMP library path + - name: GMP library path on MacOS if: matrix.os.name == 'macOS' run: echo "LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH" >> $GITHUB_ENV - - name: Windows - Download MPIR + - name: Install MPIR on Windows if: matrix.os.name == 'Windows' - run: git clone https://github.com/Chia-Network/mpir_gc_x64.git + run: vcpkg install mpir - name: Set up Rust uses: dtolnay/rust-toolchain@stable diff --git a/rust_bindings/build.rs b/rust_bindings/build.rs index 4c4643b4..d23e51d7 100644 --- a/rust_bindings/build.rs +++ b/rust_bindings/build.rs @@ -45,16 +45,6 @@ fn main() { .unwrap() ); - println!( - "cargo:rustc-link-search=native={}", - src_dir - .parent() - .unwrap() - .join("mpir_gc_x64") - .to_str() - .unwrap() - ); - println!("cargo:rustc-link-lib=static=mpir"); } else { println!(