From c92dc052055ea2abf789aaf5b57cdb62c7f43f4e Mon Sep 17 00:00:00 2001 From: Saagar Jha Date: Sat, 20 Jan 2024 02:12:52 -0800 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 33 +++++++++++++++++++ .../xcshareddata/swiftpm/Package.resolved | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..975e17b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + pull_request: + branches: [main] + +jobs: + test: + strategy: + matrix: + scheme: [macOS, visionOS] + runs-on: macos-13 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Select Xcode + run: sudo xcode-select -s /Applications/Xcode_15.2.app + + - name: Set up visionOS SDK + if: matrix.scheme == 'visionOS' + run: | + defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES + xcodebuild -downloadPlatform visionOS + + - name: System Info + run: | + uname -a + xcodebuild -version + + - name: Build + run: xcodebuild -project MacCast.xcodeproj -scheme ${{ matrix.scheme }} -destination "generic/platform=${{ matrix.scheme }}" CODE_SIGNING_ALLOWED=NO diff --git a/MacCast.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/MacCast.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 50a3892..7cbc152 100644 --- a/MacCast.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/MacCast.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,7 +6,7 @@ "location" : "https://github.com/saagarjha/AppleConnect.git", "state" : { "branch" : "main", - "revision" : "fc826eca2b50cdec69781c82c4dd03a2d9e51981" + "revision" : "2ae05663ac072f5bbbdb18e3c9dd7cbc2fd4462a" } }, {