From 54536b28c398b9bd2a5c7b198ca73e7714d30f92 Mon Sep 17 00:00:00 2001 From: ElectricS01 <103579308+ElectricS01@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:17:54 +1100 Subject: [PATCH] Update swift.yml --- .github/workflows/swift.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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