Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create objective-c-xcode.yml #324

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/objective-c-xcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Xcode - Build and Analyze

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
name: Build and analyze using xcodebuild for all supported architectures
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build for macOS
run: |
scheme="SFBAudioEngine"
destination="generic/platform=macOS"
xcodebuild clean build analyze -scheme "$scheme" -destination "$destination" -disableAutomaticPackageResolution | xcpretty && exit ${PIPESTATUS[0]}
- name: Build for iOS
run: |
scheme="SFBAudioEngine"
destination="generic/platform=iOS"
xcodebuild clean build analyze -scheme "$scheme" -destination "$destination" -disableAutomaticPackageResolution | xcpretty && exit ${PIPESTATUS[0]}
- name: Build for tvOS
run: |
scheme="SFBAudioEngine"
destination="generic/platform=tvOS"
xcodebuild clean build analyze -scheme "$scheme" -destination "$destination" -disableAutomaticPackageResolution | xcpretty && exit ${PIPESTATUS[0]}
- name: Build for Mac Catalyst
run: |
scheme="SFBAudioEngine"
destination="generic/platform=macOS,variant=Mac Catalyst"
xcodebuild clean build analyze -scheme "$scheme" -destination "$destination" -disableAutomaticPackageResolution | xcpretty && exit ${PIPESTATUS[0]}
- name: Build for iOS Simulator
run: |
scheme="SFBAudioEngine"
destination="generic/platform=iOS Simulator"
xcodebuild clean build analyze -scheme "$scheme" -destination "$destination" -disableAutomaticPackageResolution | xcpretty && exit ${PIPESTATUS[0]}
- name: Build for tvOS Simulator
run: |
scheme="SFBAudioEngine"
destination="generic/platform=tvOS Simulator"
xcodebuild clean build analyze -scheme "$scheme" -destination "$destination" -disableAutomaticPackageResolution | xcpretty && exit ${PIPESTATUS[0]}