Skip to content

Commit 2f1c57f

Browse files
committed
Break up build and test run into two separate steps
1 parent c09530d commit 2f1c57f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/swift_package_test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,12 @@ jobs:
654654
run: |
655655
${{ inputs.android_sdk_pre_build_command }}
656656
${{ steps.script_path.outputs.root }}/.github/workflows/scripts/install-and-build-with-sdk.sh --android --flags="$BUILD_FLAGS" --build-command="${{ inputs.android_sdk_build_command }}" --android-sdk-triple=${{ join(fromJson(inputs.android_sdk_triples), ' --android-sdk-triple=') }} --android-ndk-version="${{ matrix.ndk_version }}" ${{ matrix.swift_version }}
657-
if [[ "${{ inputs.enable_android_sdk_checks }}" == "true" ]]; then
658-
# install and launch the emulator and run the tests
659-
${{ steps.script_path.outputs.root }}/.github/workflows/scripts/android/android-emulator-tests.sh --android-sdk-triple=${{ join(fromJson(inputs.android_sdk_triples), ' --android-sdk-triple=') }}
660-
fi
657+
- name: Install Android Emulator and run tests
658+
if: ${{ inputs.enable_android_sdk_checks }}
659+
shell: bash
660+
run: |
661+
${{ inputs.android_sdk_pre_build_command }}
662+
${{ steps.script_path.outputs.root }}/.github/workflows/scripts/android/android-emulator-tests.sh --android-sdk-triple=${{ join(fromJson(inputs.android_sdk_triples), ' --android-sdk-triple=') }}
661663
662664
windows-build:
663665
name: Windows (${{ matrix.swift_version }} - ${{ matrix.os_version }})

0 commit comments

Comments
 (0)