Test all platforms #105
This file contains 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: Test all platforms | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: 0 6 * * * | |
jobs: | |
build-ios: | |
runs-on: macos-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Check xcodebuild version | |
run: xcodebuild -version | |
- name: Check xcode embedded SDKs | |
run: xcodebuild -showsdks | |
- name: Show buildable schemes | |
run: xcodebuild -list | |
- name: Set Default Scheme | |
run: | | |
default='TeslaKit' | |
echo $default | cat >default | |
echo Using default scheme: $default | |
- name: Build ( iOS ${{ 'iOS Simulator' }}) | |
env: | |
scheme: ${{ 'default' }} | |
platform: ${{ 'iOS Simulator' }} | |
run: swift build -v | |