File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,29 @@ jobs:
176176 - name : Swift Test
177177 run : " swift test"
178178
179+ build-swift-android :
180+ name : Build (Swift/Android) (${{ matrix.os_version }} swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}})
181+ runs-on : ubuntu-latest
182+ strategy :
183+ fail-fast : false
184+ matrix :
185+ swift_version : ['nightly-main']
186+ os_version : ['jammy']
187+ jdk_vendor : ['corretto']
188+ sdk_triple : ['x86_64-unknown-linux-android28']
189+ ndk_version : ['r27d']
190+ container :
191+ image : ${{ (contains(matrix.swift_version, 'nightly') && 'swiftlang/swift') || 'swift' }}:${{ matrix.swift_version }}-${{ matrix.os_version }}
192+ steps :
193+ - uses : actions/checkout@v4
194+ - name : Prepare CI Environment
195+ uses : ./.github/actions/prepare_env
196+ - name : Install Swift SDK for Android and build
197+ run : |
198+ apt-get -q update && apt-get -yq install curl
199+ curl -s --retry 3 https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/install-and-build-with-sdk.sh | \
200+ bash -s -- --android --build-command="swift build" --android-sdk-triple="${{ matrix.sdk_triple }}" --android-ndk-version="${{ matrix.ndk_version }}" ${{ matrix.swift_version }}
201+
179202 verify-samples :
180203 name : Sample ${{ matrix.sample_app }} (${{ matrix.os_version }} swift:${{ matrix.swift_version }} jdk:${{matrix.jdk_vendor}})
181204 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments