Fix build and add CI #2
Workflow file for this run
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: spm | |
on: | |
pull_request: | |
schedule: | |
# Run every day at 11pm (PST) - cron uses UTC times | |
- cron: '0 7 * * *' | |
jobs: | |
swiftpm-build-tests: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Initialize xcodebuild | |
run: xcodebuild -list | |
- name: iOS Simulator Build Tests | |
run: xcodebuild -scheme gRPC-Package build -sdk 'iphonesimulator' -destination 'platform=iOS Simulator,name=iPhone 14' | |
- name: macos Build Tests | |
run: xcodebuild -scheme gRPC-Package -sdk 'macosx' -destination 'platform=OS X,arch=x86_64', | |
- name: tvOS Build Tests | |
run: xcodebuild -scheme gRPC-Package build -sdk "appletvsimulator" -destination 'platform=tvOS Simulator,name=Apple TV' | |
- name: iOS Device Build Tests | |
run: xcodebuild -scheme gRPC-Package build -sdk 'iphoneos' |