Setup GitHub CI. #2
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: Swift Package | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: SPM Build | |
run: swift build | |
- name: SPM Test | |
run: swift test | |
- name: macOS Build | |
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=macOS' | xcbeautify | |
- name: iOS Build | |
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=iOS' | xcbeautify | |
- name: tvOS Build | |
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=tvOS' | xcbeautify | |
- name: watchOS Build | |
run: xcodebuild build -scheme B9AssociatedObject -destination 'generic/platform=watchOS' | xcbeautify |