swift-android-samples ci #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: swift-android-samples ci | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
schedule: | |
- cron: '45 2,13 * * *' | |
jobs: | |
run-samples: | |
strategy: | |
fail-fast: false | |
matrix: | |
swift: ['6.1', 'nightly-6.2'] | |
runs-on: macos-13 | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Build Swift Package for Android (Skip)" | |
run: | | |
brew install skiptools/skip/skip || (brew update && brew install skiptools/skip/skip) | |
skip android sdk install --version ${{ matrix.swift }} | |
# https://github.com/swiftlang/swift-driver/pull/1879 | |
echo 'ANDROID_NDK_ROOT=""' >> $GITHUB_ENV | |
echo 'SWIFT_SDK_VERSION=${{ matrix.swift }}' >> $GITHUB_ENV | |
- name: "Test Swift Package on Android (Skip)" | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 28 | |
arch: x86_64 | |
script: ./runall.sh | |