Skip to content

worker xcode

worker xcode #8

Workflow file for this run

name: Build tvOS App
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build tvOS App
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Select Xcode 16.2
run: sudo xcode-select -switch /Applications/Xcode_16.2.app
- name: Build tvOS App
run: |
xcodebuild clean \
-project tvos-example.xcodeproj \
-scheme tvos-example \
-sdk appletvsimulator \
-configuration Debug \
-derivedDataPath build
- name: Archive tvOS App
run: |
xcodebuild archive \
-project tvos-example.xcodeproj \
-scheme tvos-example \
-sdk appletvsimulator \
-configuration Debug \
-archivePath build/tvos-example.xcarchive
- name: Export IPA
run: |
mkdir -p build/ipa
xcodebuild \
-exportArchive \
-archivePath build/tvos-example.xcarchive \
-exportPath build/ipa \
-exportOptionsPlist ExportOptions.plist
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: tvos-example-ipa
path: build/ipa/tvos-example.ipa