Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iOS CI and fix warning on iOS #9

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: iOS

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

jobs:
ios_test:
name: Execute tests on iOS
strategy:
fail-fast: false
matrix:
include:
- os: macos-13
xcode-version: "15.0" # Swift 5.9.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Swift version
run: swift --version
- name: Build in release mode
run: |
xcodebuild build \
-scheme OpenSwiftUI \
-configuration Release \
-sdk iphonesimulator \
-destination "platform=iOS Simulator" \
-derivedDataPath .build-release-iOS
# OTHER_SWIFT_FLAGS="-warnings-as-errors" \ OpenCombine will emit warning in xcodebuild

# Test is currently not supported due to the link issue to PrivateFramework
# - name: Build and run tests in release mode
# run: |
# xcodebuild build \
# -scheme OpenSwiftUI \
# -configuration Release \
# -sdk iphonesimulator \
# -destination "platform=iOS Simulator" \
# -enableCodeCoverage YES \
# OTHER_SWIFT_FLAGS="-warnings-as-errors" \
# -derivedDataPath .build-test-debug
8 changes: 7 additions & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
version: 1
builder:
configs:
- documentation_targets: [OpenSwiftUI]
- swift_version: 5.9
documentation_targets: [OpenSwiftUI]
customDocumentationParameters: [
--source-service, github,
--source-service-base-url, https://github.com/Kyle-Ye/OpenSwiftUI/blob/main,
--checkout-path, .
]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AppDelegate: UIResponder {
@objc override init() {
fallbackDelegate = nil
super.init()
guard let delegateBox = AppGraph.delegateBox else {
guard let _ = AppGraph.delegateBox else {
return
}
}
Expand Down