Skip to content

Commit

Permalink
ci: Fix building watchOS sample (#2260)
Browse files Browse the repository at this point in the history
Was broken with #2256, as this
PR removed it from the workspace. Now we call the
project directly.
  • Loading branch information
philipphofmann authored Oct 5, 2022
1 parent 604586a commit db5f62a
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- '.github/workflows/build.yml'
- 'fastlane/**'
- 'scripts/ci-select-xcode.sh'
- Sentry.xcworkspace

jobs:
# We had issues that the release build was broken on master.
Expand Down Expand Up @@ -42,21 +43,14 @@ jobs:
strategy:
fail-fast: false
matrix:
beforeXcode: ['']
# other sample projects are built in ui-tests
scheme:
- macOS-Swift
- iOS13-Swift

# WatchOS needs Sentry as a XCFramework
include:
- scheme: watchOS-Swift WatchKit App
beforeXcode: 'make build-for-watchos'

steps:
- uses: actions/checkout@v3
- run: ./scripts/ci-select-xcode.sh
- run: ${{matrix.beforeXcode}}

# Disable code signing. We just want to make sure these compile.
- run: >-
Expand All @@ -68,6 +62,23 @@ jobs:
CODE_SIGNING_ALLOWED="NO"
build
build-watch-os-sample:
name: Sample watchOS
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: ./scripts/ci-select-xcode.sh
- run: make build-for-watchos

# Disable code signing. We just want to make sure these compile.
- run: >-
env NSUnbufferedIO=YES
xcodebuild
-project Samples/watchOS-Swift/watchOS-Swift.xcodeproj
-configuration Debug
CODE_SIGNING_ALLOWED="NO"
build
build-xcframework:
name: Build & Validate XCFramework
runs-on: macos-12
Expand Down

0 comments on commit db5f62a

Please sign in to comment.