Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricS01 committed Mar 3, 2024
1 parent c5b30ac commit 2436560
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Swift

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

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Xcode Setup
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "14.1"

- name: Build
run: |
cd TPU\ Mac
xcodebuild build -project TPU_Mac.xcodeproj clean build -sdk iphoneos CODE_SIGNING_ALLOWED=No
- name: Run tests
run: |
cd TPU\ Mac
xcodebuild test -project TPU_Mac.xcodeproj clean build -sdk iphoneos -destination "platform=iOS Simulator,OS=16.1,name=iPhone 14 Pro Max" CODE_SIGNING_ALLOWED=No

0 comments on commit 2436560

Please sign in to comment.