From 018196de453b72d67548145ca4121c5d571b8292 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 23 Jul 2022 21:40:16 +1000 Subject: [PATCH] Disable default features only when debug_build_args is overriden Signed-off-by: Jiahao XU --- .github/workflows/build-and-integration-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-integration-tests.yml b/.github/workflows/build-and-integration-tests.yml index 0da06e02..30a0a7c8 100644 --- a/.github/workflows/build-and-integration-tests.yml +++ b/.github/workflows/build-and-integration-tests.yml @@ -23,7 +23,7 @@ jobs: output: cargo-binstall use-cross: false test: true - debug_build_args: --features pkg-config + debug_build_args: --no-default-features --features pkg-config - target: x86_64-apple-darwin os: macos-latest output: cargo-binstall @@ -34,13 +34,13 @@ jobs: output: cargo-binstall use-cross: false test: false - debug_build_args: --features native-tls + debug_build_args: --no-default-features --features native-tls - target: x86_64-pc-windows-msvc os: windows-latest output: cargo-binstall.exe use-cross: false test: false - debug_build_args: --features native-tls + debug_build_args: --no-default-features --features native-tls - target: x86_64-unknown-linux-musl os: ubuntu-latest output: cargo-binstall @@ -99,7 +99,7 @@ jobs: if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} with: command: build - args: --target ${{ matrix.target }} --no-default-features ${{ matrix.debug_build_args }} + args: --target ${{ matrix.target }} ${{ matrix.debug_build_args }} - name: Copy and rename utility if: ${{ startsWith(github.ref, 'refs/tags/v') }}