Skip to content

Instantly share code, notes, and snippets.

@przemek-jablonski
Created August 26, 2021 19:51
Show Gist options
  • Save przemek-jablonski/4d8f41071b49263321cd39d15a52969e to your computer and use it in GitHub Desktop.
Save przemek-jablonski/4d8f41071b49263321cd39d15a52969e to your computer and use it in GitHub Desktop.
name: Multiplatform build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 0 * * *
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Show eligible build destinations for Earendil
run: xcodebuild -showdestinations -scheme Earendil
- name: Build and test ( macOS 12.0 Monterey)
run: xcodebuild test -scheme Earendil -destination 'platform=macOS,arch=x86_64,id=4666018E-420F-C1B5-9525-B145CECA79EB'
- name: Build and test ( mac Catalyst 12.0)
run: xcodebuild test -scheme Earendil -destination 'platform=macOS,arch=x86_64,variant=Mac Catalyst,id=4666018E-420F-C1B5-9525-B145CECA79EB'
- name: Build and test ( tvOS 15.0)
run: xcodebuild test -scheme Earendil -destination 'platform=tvOS Simulator,OS=15.0,name=Apple TV 4K (2nd generation)'
- name: Build and test ( iOS 15.0)
run: xcodebuild test -scheme Earendil -destination 'platform=iOS Simulator,OS=15.0,name=iPhone 12 Pro'
- name: Build and test ( watchOS 8.0)
run: xcodebuild test -scheme Earendil -destination 'platform=watchOS Simulator,OS=8.0,name=Apple Watch Series 6 - 40mm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment