From 8e10c0d3561fb4a9ee181d6900a66e661324e252 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sat, 23 Jul 2022 20:35:46 +1000 Subject: [PATCH] Enable feature `native-tls` in debug build in integration CI when not doing cross compilation Signed-off-by: Jiahao XU --- .github/workflows/build-and-integration-tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-integration-tests.yml b/.github/workflows/build-and-integration-tests.yml index b570a8eb..2541c8d7 100644 --- a/.github/workflows/build-and-integration-tests.yml +++ b/.github/workflows/build-and-integration-tests.yml @@ -93,11 +93,18 @@ jobs: - name: Build debug uses: actions-rs/cargo@v1 - if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} + if: ${{ ! startsWith(github.ref, 'refs/tags/v') && use-cross == 'false' }} with: command: build - args: --target ${{ matrix.target }} --no-default-features - use-cross: ${{ matrix.use-cross }} + args: --target ${{ matrix.target }} --no-default-features --features native-tls + + - name: Build debug with cross compilation + uses: actions-rs/cargo@v1 + if: ${{ ! startsWith(github.ref, 'refs/tags/v') && use-cross == 'true' }} + with: + command: build + args: --target ${{ matrix.target }} --no-default-features --features rustls + use-cross: true - name: Copy and rename utility if: ${{ startsWith(github.ref, 'refs/tags/v') }}