From adbc2d4a110cba4d6030db031ce897bab2d0fc00 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 23 Jul 2022 19:56:42 +1000 Subject: [PATCH] Disable feature `pkg-config` for cross compilation. Signed-off-by: Jiahao XU --- .github/workflows/build-and-integration-tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-integration-tests.yml b/.github/workflows/build-and-integration-tests.yml index 9dc8f91b..b450f0ef 100644 --- a/.github/workflows/build-and-integration-tests.yml +++ b/.github/workflows/build-and-integration-tests.yml @@ -91,13 +91,20 @@ jobs: args: --target ${{ matrix.target }} --release use-cross: ${{ matrix.use-cross }} + - name: Build debug with cross compilation + uses: actions-rs/cargo@v1 + if: ${{ ! startsWith(github.ref, 'refs/tags/v') && matrix.use-cross == 'true' }} + with: + command: build + args: --target ${{ matrix.target }} --no-default-features + use-cross: true + - name: Build debug uses: actions-rs/cargo@v1 if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} with: command: build args: --target ${{ matrix.target }} --no-default-features --features pkg-config - use-cross: ${{ matrix.use-cross }} - name: Copy and rename utility if: ${{ startsWith(github.ref, 'refs/tags/v') }}