Skip to content
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
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:

- name: SwiftFormat Lint
run: swiftformat --lint . --reporter github-actions-log
macOS:
apple:
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.title, '[skip ci]')
name: ${{ matrix.platform }} (Swift ${{ matrix.swift }})
runs-on: macos-15
strategy:
fail-fast: false
matrix:
platform:
- iOS
- mac-catalyst
- macOS
- tvOS
- watchOS
Expand All @@ -48,6 +50,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v5

- name: Select Xcode version
uses: mxcl/xcodebuild@v3
with:
swift: ~${{ matrix.swift }}
action: none
verbosity: xcbeautify

- name: Disable SwiftSyntax Prebuilts
run: |
defaults write com.apple.dt.Xcode IDEPackageEnablePrebuilts -bool NO
Expand All @@ -57,23 +66,15 @@ jobs:
rm -rf ~/Library/Developer/Xcode/SourcePackages
rm -rf ~/Library/Caches/org.swift.swiftpm

- name: Select Xcode version
uses: mxcl/xcodebuild@v3
with:
swift: ~${{ matrix.swift }}
action: none
verbosity: xcbeautify

- if: ${{ matrix.platform != 'macOS' }}
- if: ${{ matrix.platform != 'macOS' && matrix.platform != 'mac-catalyst' }}
name: Download Default Runtime
run: xcodebuild -downloadPlatform ${{ matrix.platform }}

- name: Test Library
- name: Run Tests
uses: mxcl/xcodebuild@v3
with:
platform: ${{ matrix.platform }}
swift: ~${{ matrix.swift }}
action: test
workspace: ObjCRuntimeTools.xcworkspace
scheme: ObjCRuntimeTools
verbosity: xcbeautify
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.DS_Store
/.build
/Packages
/.swiftpm
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
7 changes: 0 additions & 7 deletions ObjCRuntimeTools.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions ObjCRuntimeTools.xcworkspace/xcshareddata/swiftpm/Package.resolved

This file was deleted.

10 changes: 5 additions & 5 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ package.targets += [
"Association",
"AssociationMacro",
.product(name: "MacroTesting", package: "swift-macro-testing"),
// For some reason, with Swift Syntax prebuilts enabled, we need to depend on SwiftCompilerPlugin here to work around error:
// Compilation search paths unable to resolve module dependency: 'SwiftCompilerPlugin'
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
]
),
]
Expand All @@ -75,6 +78,9 @@ package.targets += [
"Swizzling",
"SwizzlingMacro",
.product(name: "MacroTesting", package: "swift-macro-testing"),
// For some reason, with Swift Syntax prebuilts enabled, we need to depend on SwiftCompilerPlugin here to work around error:
// Compilation search paths unable to resolve module dependency: 'SwiftCompilerPlugin'
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
]
),
]
Expand Down
Loading