Skip to content

Commit 53d9bbb

Browse files
committed
Android SDK build
1 parent 836d862 commit 53d9bbb

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/pull_request.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,26 @@ jobs:
8080
cd DemoProject
8181
${{ steps.paths.outputs.swift-path }} --version
8282
${{ steps.paths.outputs.swift-path }} package init
83-
echo 'import Foundation' >> Sources/DemoProject/DemoProject.swift
84-
echo 'import FoundationEssentials' >> Sources/DemoProject/DemoProject.swift
85-
echo 'import FoundationXML' >> Sources/DemoProject/DemoProject.swift
86-
echo 'import FoundationNetworking' >> Sources/DemoProject/DemoProject.swift
87-
echo 'import Concurrency' >> Sources/DemoProject/DemoProject.swift
88-
echo 'import Dispatch' >> Sources/DemoProject/DemoProject.swift
89-
echo 'import Android' >> Sources/DemoProject/DemoProject.swift
90-
#${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-linux-android28
91-
${{ steps.paths.outputs.swift-path }} build --swift-sdk x86_64-linux-android28
83+
#echo 'import Foundation' >> Sources/DemoProject/DemoProject.swift
84+
#echo 'import FoundationEssentials' >> Sources/DemoProject/DemoProject.swift
85+
#echo 'import FoundationXML' >> Sources/DemoProject/DemoProject.swift
86+
#echo 'import FoundationNetworking' >> Sources/DemoProject/DemoProject.swift
87+
#echo 'import Dispatch' >> Sources/DemoProject/DemoProject.swift
88+
#echo 'import Android' >> Sources/DemoProject/DemoProject.swift
89+
#${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-unknown-linux-android28
90+
${{ steps.paths.outputs.swift-path }} build --swift-sdk x86_64-unknown-linux-android28
9291
- name: Build swift-algorithms
9392
run: |
9493
cd ${{ runner.temp }}
9594
git clone https://github.com/apple/swift-algorithms.git
9695
cd swift-algorithms
97-
${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-linux-android28
96+
${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-unknown-linux-android28
9897
- name: Test Swift Package on Android
9998
# TODO: need to implement installed-sdk option in swift-android-action
10099
if: false
101100
uses: skiptools/swift-android-action@main
102101
with:
103102
package-path: ${{ runner.temp }}/DemoProject
104-
installed-sdk: x86_64-linux-android28
103+
installed-sdk: x86_64-unknown-linux-android28
105104
installed-swift: ${{ steps.paths.outputs.swift-path }}
106105

swift-ci/sdks/android/scripts/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ groupstart "Bundling SDK"
402402
sdk_name=swift-${swift_version}-android-${android_api}-${android_sdk_version}
403403
#sdk_base=android-27c-sysroot
404404
#sdk_base=swift-unknown-android
405-
sdk_base=linux-android
405+
#sdk_base=linux-android
406+
sdk_base=swift-android
406407
#sdk_root="${sdk_base}-${android_sdk_version}.sdk"
407408
sdk_root="${sdk_base}.sdk"
408409

@@ -453,7 +454,7 @@ for api in $(eval echo "{$android_api..35}"); do
453454
EOF
454455
fi
455456
cat >> swift-sdk.json <<EOF
456-
"${arch}-${sdk_base}${api}": {
457+
"${arch}-unknown-linux-android${api}": {
457458
"sdkRootPath": "ndk-sysroot",
458459
"swiftResourcesPath": "${sdk_root}/${arch}/usr/lib/swift",
459460
"swiftStaticResourcesPath": "${sdk_root}/${arch}/usr/lib/swift_static",

0 commit comments

Comments
 (0)