Update main.yml #3
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: Build and Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test-package: | |
name: Test AgniKit Package | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Build Package | |
run: swift build -v | |
test-app: | |
name: Test Agni iOS App | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Build iOS App | |
run: | | |
xcodebuild clean build \ | |
-project Agni/Agni.xcodeproj \ | |
-scheme Agni \ | |
-destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=18.0" \ | |
CODE_SIGN_IDENTITY="" \ | |
CODE_SIGNING_REQUIRED=NO \ | |
CODE_SIGNING_ALLOWED=NO | |
- name: Build macOS App | |
run: | | |
xcodebuild clean build \ | |
-project Agni/Agni.xcodeproj \ | |
-scheme Agni \ | |
-destination "platform=macOS" \ | |
CODE_SIGN_IDENTITY="" \ | |
CODE_SIGNING_REQUIRED=NO \ | |
CODE_SIGNING_ALLOWED=NO |