Skip to content

Commit ec5d837

Browse files
committed
Add TARGET_OS_ANDROID to compile definitions and environment
1 parent 836386d commit ec5d837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ runs:
197197
198198
echo "SWIFT_SDK_HOME=${SWIFT_SDK_HOME}" >> $GITHUB_ENV
199199
200-
echo "swiftcmd=${SWIFT_INSTALLATION}/bin/swift build --swift-sdk ${SWIFT_SDK_TARGET} -Xswiftc -DSKIP_BRIDGE ${{ inputs.swift-build-flags }}" >> $GITHUB_OUTPUT
200+
echo "swiftcmd=TARGET_OS_ANDROID=1 SKIP_BRIDGE=1 ${SWIFT_INSTALLATION}/bin/swift build --swift-sdk ${SWIFT_SDK_TARGET} -Xswiftc -DTARGET_OS_ANDROID -Xswiftc -DSKIP_BRIDGE ${{ inputs.swift-build-flags }}" >> $GITHUB_OUTPUT
201201
echo "swift-sdk=${SWIFT_SDK_TARGET}" >> $GITHUB_OUTPUT
202202
203203
- name: Check Swift Version
@@ -214,7 +214,7 @@ runs:
214214
if [ "${{ inputs.build-tests }}" == 'true' ]; then
215215
BUILD_TESTS="--build-tests"
216216
fi
217-
SKIP_BRIDGE=1 ${{ steps.install.outputs.swiftcmd }} ${BUILD_TESTS}
217+
${{ steps.install.outputs.swiftcmd }} ${BUILD_TESTS}
218218
219219
- name: Prepare Android Emulator Test Script
220220
if: ${{ inputs.run-tests == 'true' && inputs.build-tests == 'true' && inputs.build-package == 'true' }}

0 commit comments

Comments
 (0)