From 8d28993bb4832805254a3adb9c95c6d4d65ea80b Mon Sep 17 00:00:00 2001 From: dal Date: Wed, 7 May 2025 08:00:52 -0600 Subject: [PATCH] ok libpq error --- .github/workflows/cli-release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cli-release.yml b/.github/workflows/cli-release.yml index d065e2398..0247be934 100644 --- a/.github/workflows/cli-release.yml +++ b/.github/workflows/cli-release.yml @@ -26,21 +26,29 @@ jobs: artifact_name: buster-cli-linux-x86_64.tar.gz use_tar: true binary_name: buster-cli + rust_flags: "" + pkg_config_path: "" - os: macos-latest target: x86_64-apple-darwin artifact_name: buster-cli-darwin-x86_64.tar.gz use_tar: true binary_name: buster-cli + rust_flags: "-L/usr/local/opt/libpq/lib" + pkg_config_path: "/usr/local/opt/libpq/lib/pkgconfig" - os: macos-latest target: aarch64-apple-darwin artifact_name: buster-cli-darwin-arm64.tar.gz use_tar: true binary_name: buster-cli + rust_flags: "-L/opt/homebrew/opt/libpq/lib" + pkg_config_path: "/opt/homebrew/opt/libpq/lib/pkgconfig" - os: windows-latest target: x86_64-pc-windows-msvc artifact_name: buster-cli-windows-x86_64.zip use_tar: false binary_name: buster-cli.exe + rust_flags: "" + pkg_config_path: "" steps: - name: Checkout code uses: actions/checkout@v4 @@ -75,6 +83,9 @@ jobs: - name: Build optimized release # Builds the buster-cli package from cli/cli/Cargo.toml working-directory: ./cli + env: + RUSTFLAGS: ${{ matrix.rust_flags }} + PKG_CONFIG_PATH: ${{ matrix.pkg_config_path }} run: cargo build --release --target ${{ matrix.target }} --manifest-path ./cli/Cargo.toml - name: Compress binary (Unix)