diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index cda61a2..1b27eb8 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,6 +1,3 @@ -# This workflow will build a Swift project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift - name: Swift on: @@ -16,7 +13,18 @@ jobs: steps: - uses: actions/checkout@v3 + + - name: Xcode Setup + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.1' + - name: Build - run: swift build -v + run: | + cd GitHubActions + xcodebuild build -project TPU_Mac.xcodeprojclean build -sdk iphoneos CODE_SIGNING_ALLOWED=No + - name: Run tests - run: swift test -v + run: | + cd GitHubActions + 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