From c611a6c2eb9b376c3e6a6295c4d0771a65a44dd2 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 16 Jan 2025 22:18:17 +0800 Subject: fix: add pkg-config setup for macOS in release workflow --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11adf65..5baabea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,14 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Set up pkg-config for macOS + if: matrix.os == 'macos-latest' + run: | + brew install pkg-config + echo 'export PKG_CONFIG_ALLOW_CROSS=1' >> $GITHUB_ENV + echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >> $GITHUB_ENV + echo 'export PKG_CONFIG_SYSROOT_DIR=/usr/local' >> $GITHUB_ENV + - name: Set up Rust uses: actions-rs/toolchain@v1 with: -- cgit v1.2.3-70-g09d2