Skip to content

Commit 31bd0e9

Browse files
committed
Android SDK build
1 parent 877e5e3 commit 31bd0e9

File tree

2 files changed

+7788
-6
lines changed

2 files changed

+7788
-6
lines changed

.github/workflows/pull_request.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,24 @@ jobs:
6969
compression-level: 0
7070
name: ${{ steps.paths.outputs.artifact-name }}
7171
path: ${{ steps.paths.outputs.artifact-path }}
72-
- name: Install SDK Locally
73-
run:
72+
- name: Install SDK
73+
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
7576
- name: Build Demo Project
7677
run: |
77-
cd $RUNNER_TEMP
78+
cd ${{ runner.temp }}
7879
mkdir DemoProject
7980
cd DemoProject
8081
${{ steps.paths.outputs.swift-path }} --version
8182
${{ steps.paths.outputs.swift-path }} package init
82-
${{ steps.paths.outputs.swift-path }} build --build-tests --sdk --swift-sdk x86_64-unknown-linux-android28
83+
${{ steps.paths.outputs.swift-path }} build --build-tests --swift-sdk x86_64-swift-android
8384
- name: Test Swift Package on Android
8485
# TODO: need to implement installed-sdk option in swift-android-action
8586
if: false
8687
uses: skiptools/swift-android-action@main
8788
with:
88-
package-path: $RUNNER_TEMP/DemoProject
89-
installed-sdk: aarch64-unknown-linux-android28
89+
package-path: ${{ runner.temp }}/DemoProject
90+
installed-sdk: x86_64-swift-android
91+
installed-swift: ${{ steps.paths.outputs.swift-path }}
9092

0 commit comments

Comments
 (0)