Update project to use xcode 16 folders, for easier maintenance between project and spm package. Add editorconfig file too, and bump swift version to 5.9 #116
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "**.swift" | |
- "**.podspec" | |
- ".github/workflows/*" | |
pull_request: | |
branches: [master] | |
paths: | |
- "**.swift" | |
- "**.podspec" | |
- ".github/workflows/*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DEVELOPER_DIR: "/Applications/Xcode_16.0.app/Contents/Developer" | |
jobs: | |
build-mac: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Tools | |
run: gem update cocoapods | |
- name: Print Versions | |
run: | | |
xcodebuild -version | |
swift --version | |
pod --version | |
- name: Build | |
run: swift build --build-tests | |
- name: Test | |
run: swift test --skip-build | |
- name: Verify Carthage | |
run: carthage build --no-skip-current --verbose --use-xcframeworks --platform macOS | |
- name: Pod lint | |
run: pod lib lint | |
build-ios: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: | | |
set -o pipefail && xcodebuild \ | |
-scheme CombineCoreBluetooth \ | |
-workspace ./CombineCoreBluetooth.xcworkspace/ \ | |
-destination "platform=iOS Simulator,OS=latest,name=Any iOS Simulator Device" \ | |
-sdk iphonesimulator \ | |
-enableCodeCoverage YES \ | |
-disableAutomaticPackageResolution \ | |
test | xcpretty -c | |
build-tvos: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: | | |
set -o pipefail && xcodebuild \ | |
-scheme CombineCoreBluetooth \ | |
-workspace ./CombineCoreBluetooth.xcworkspace/ \ | |
-destination "platform=tvOS Simulator,OS=latest,name=Any tvOS Simulator Device" \ | |
-sdk appletvsimulator \ | |
-enableCodeCoverage YES \ | |
-disableAutomaticPackageResolution \ | |
test | xcpretty -c | |
build-watchos: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: | | |
set -o pipefail && xcodebuild \ | |
-scheme CombineCoreBluetooth \ | |
-workspace ./CombineCoreBluetooth.xcworkspace/ \ | |
-destination "platform=watchOS Simulator,OS=latest,name=Any watchOS Simulator Device" \ | |
-sdk watchsimulator \ | |
-enableCodeCoverage YES \ | |
-disableAutomaticPackageResolution \ | |
test | xcpretty -c | |
build-visionos: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test | |
run: | | |
set -o pipefail && xcodebuild \ | |
-scheme CombineCoreBluetooth \ | |
-workspace ./CombineCoreBluetooth.xcworkspace/ \ | |
-destination "platform=visionOS Simulator,OS=latest,name=Any visionOS Simulator Device" \ | |
-sdk xrsimulator \ | |
-enableCodeCoverage YES \ | |
-disableAutomaticPackageResolution \ | |
test | xcpretty -c |