Skip to content

Commit

Permalink
Compile for Android on CI (7)
Browse files Browse the repository at this point in the history
  • Loading branch information
johankool committed Dec 7, 2024
1 parent 6d88bd8 commit 63fddae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
swift sdk install https://github.com/finagolfin/swift-android-sdk/releases/download/6.0.2/swift-6.0.2-RELEASE-android-24-0.1.artifactbundle.tar.gz --checksum d75615eac3e614131133c7cc2076b0b8fb4327d89dce802c25cd53e75e1881f4
- name: Build Tests
run:
OMIT_MACRO_TESTS=1 swift build --swift-sdk aarch64-unknown-linux-android24 --build-tests
OMIT_MACRO_TESTS=1 swift build --swift-sdk x86_64-unknown-linux-android24 --build-tests
- name: Prepare Android Emulator Test Script
run: |
set -x
Expand All @@ -166,14 +166,12 @@ jobs:
EOF
mkdir pack
TARGET="x86_64-unknown-linux-android$ANDROID_API_LEVEL"
cp /home/runner/work/swift-case-paths/swift-case-paths/.build/aarch64-unknown-linux-android24/debug/swift-case-pathsPackageTests.derived/runner.swift pack
cp /home/runner/work/swift-case-paths/swift-case-paths/.build/x86_64-unknown-linux-android24/debug/swift-case-pathsPackageTests.derived/runner.swift pack
chmod +x ~/test-toolchain.sh
- name: Run Tests on Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: aarch64
arch: x86_64
script: ~/test-toolchain.sh

0 comments on commit 63fddae

Please sign in to comment.