Skip to content

Commit a8071ba

Browse files
committed
Android SDK build
1 parent 53d9bbb commit a8071ba

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Install SDK
7373
run: |
7474
${{ steps.paths.outputs.swift-path }} sdk install ${{ steps.paths.outputs.artifact-path }}
75-
${{ steps.paths.outputs.swift-path }} sdk configure --show-configuration $(${{ steps.paths.outputs.swift-path }} sdk list | head -n 1) x86_64-swift-android
75+
${{ steps.paths.outputs.swift-path }} sdk configure --show-configuration $(${{ steps.paths.outputs.swift-path }} sdk list | head -n 1) x86_64-unknown-linux-android
7676
- name: Build Demo Project
7777
run: |
7878
cd ${{ runner.temp }}
@@ -86,20 +86,20 @@ jobs:
8686
#echo 'import FoundationNetworking' >> Sources/DemoProject/DemoProject.swift
8787
#echo 'import Dispatch' >> Sources/DemoProject/DemoProject.swift
8888
#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
89+
#${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-unknown-linux-android
90+
${{ steps.paths.outputs.swift-path }} build --swift-sdk x86_64-unknown-linux-android
9191
- name: Build swift-algorithms
9292
run: |
9393
cd ${{ runner.temp }}
9494
git clone https://github.com/apple/swift-algorithms.git
9595
cd swift-algorithms
96-
${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-unknown-linux-android28
96+
${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-unknown-linux-android
9797
- name: Test Swift Package on Android
9898
# TODO: need to implement installed-sdk option in swift-android-action
9999
if: false
100100
uses: skiptools/swift-android-action@main
101101
with:
102102
package-path: ${{ runner.temp }}/DemoProject
103-
installed-sdk: x86_64-unknown-linux-android28
103+
installed-sdk: x86_64-unknown-linux-android
104104
installed-swift: ${{ steps.paths.outputs.swift-path }}
105105

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ cat > swift-sdk.json <<EOF
444444
EOF
445445

446446
first=true
447-
for api in $(eval echo "{$android_api..35}"); do
447+
# create targets for the supported API and higher,
448+
# as well as a blank API, which will be the NDK default
449+
for api in "" $(eval echo "{$android_api..36}"); do
448450
for arch in $archs; do
449451
if [[ "$first" == "true" ]]; then
450452
first=false

0 commit comments

Comments
 (0)