Add github actions #34
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: Pull Request Build | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Xcode select | |
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer' | |
- name: Build TestApp | |
run: xcodebuild build -scheme DemoApp -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -project DemoApp/DemoApp.xcodeproj | |
- name: Build Snapshotting | |
run: xcodebuild build -scheme Snapshotting -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' | |
- name: Build SnapshottingTests | |
run: xcodebuild build -scheme SnapshottingTests -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' | |
build-tvos: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Xcode select | |
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer' | |
- name: Build TestApp | |
run: xcodebuild build -scheme DemoApp -sdk appletvsimulator -destination 'generic/platform=tvOS Simulator' -project DemoApp/DemoApp.xcodeproj | |
- name: Build Snapshotting | |
run: xcodebuild build -scheme Snapshotting -sdk appletvsimulator -destination 'generic/platform=tvOS Simulator' | |
- name: Build SnapshottingTests | |
run: xcodebuild build -scheme SnapshottingTests -sdk appletvsimulator -destination 'generic/platform=tvOS Simulator' | |
build-visionos: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Xcode select | |
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer' | |
- name: Build TestApp | |
run: xcodebuild build -scheme DemoApp -sdk xrsimulator -destination 'generic/platform=visionOS Simulator' -project DemoApp/DemoApp.xcodeproj | |
- name: Build Snapshotting | |
run: xcodebuild build -scheme Snapshotting -sdk xrsimulator -destination 'generic/platform=visionOS Simulator' | |
- name: Build SnapshottingTests | |
run: xcodebuild build -scheme SnapshottingTests -sdk xrsimulator -destination 'generic/platform=visionOS Simulator' | |
build-watchos: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Xcode select | |
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer' | |
- name: Build TestApp | |
run: xcodebuild build -scheme DemoApp -sdk watchsimulator -destination 'generic/platform=watchOS Simulator' -project DemoApp/DemoApp.xcodeproj | |
- name: Build Snapshotting | |
run: xcodebuild build -scheme Snapshotting -sdk watchsimulator -destination 'generic/platform=watchOS Simulator' | |
- name: Build SnapshottingTests | |
run: xcodebuild build -scheme SnapshottingTests -sdk watchsimulator -destination 'generic/platform=watchOS Simulator' | |
build-macos: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Xcode select | |
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer' | |
- name: Build TestApp | |
run: xcodebuild build -scheme DemoApp -sdk macos -project DemoApp/DemoApp.xcodeproj | |
- name: Build Snapshotting | |
run: xcodebuild build -scheme Snapshotting -sdk macos -destination | |
- name: Build SnapshottingTests | |
run: xcodebuild build -scheme SnapshottingTests -sdk macos -destination |