diff options
| author | 2025-01-16 22:22:22 +0800 | |
|---|---|---|
| committer | 2025-01-16 22:22:22 +0800 | |
| commit | 13239ef88ccf92632a33983615505c792a880105 (patch) | |
| tree | 416275bf65f7f5befa50212ac42a910ff9f41167 /.github | |
| parent | c611a6c2eb9b376c3e6a6295c4d0771a65a44dd2 (diff) | |
| download | DropOut-13239ef88ccf92632a33983615505c792a880105.tar.gz DropOut-13239ef88ccf92632a33983615505c792a880105.zip | |
feat: 添加 macOS 环境变量导出步骤到发布工作流
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5baabea..55885c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,13 @@ jobs: echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' >> $GITHUB_ENV echo 'export PKG_CONFIG_SYSROOT_DIR=/usr/local' >> $GITHUB_ENV + - name: Export environment variables for macOS + if: matrix.os == 'macos-latest' + run: | + export PKG_CONFIG_ALLOW_CROSS=1 + export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig + export PKG_CONFIG_SYSROOT_DIR=/usr/local + - name: Set up Rust uses: actions-rs/toolchain@v1 with: |