Skip to content
Open
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
22 changes: 22 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI workflow incompatible with iOS-only Swift package

High Severity

The workflow uses swift build and swift test on macos-latest, but the Package.swift declares this as an iOS-only package (platforms: [.iOS(.v12)]) with extensive UIKit imports throughout the codebase. The swift build command builds for the host platform (macOS), not iOS, so this will fail because UIKit is unavailable on macOS. Additionally, the test target in Package.swift is commented out, so swift test has nothing to run.

Fix in Cursor Fix in Web