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 16 commits into
base: main
Choose a base branch
from
50 changes: 50 additions & 0 deletions .github/workflows/objective-c-xcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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: Set Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- 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]}
Loading