Skip to content

Commit de3342c

Browse files
authored
build iOS in CI (#440)
- add an iOS build in CI to catch iOS-only build breaks - move the docs build into the same macOS runner
1 parent 7a8d05a commit de3342c

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ jobs:
6969
run: |
7070
pre-commit run --all || (echo "Style checks failed, please install pre-commit and run pre-commit run --all and push the change"; echo ""; git --no-pager diff; exit 1)
7171
72-
docs:
73-
needs: lint
74-
if: github.repository == 'ml-explore/mlx-swift'
75-
runs-on: [self-hosted, macos]
76-
steps:
77-
- uses: actions/checkout@v6
78-
with:
79-
submodules: recursive
80-
81-
- name: Verify documentation
82-
run: scripts/verify-docs.sh
8372
8473
mac_build_and_test:
8574
needs: lint
@@ -99,6 +88,17 @@ jobs:
9988
run: |
10089
brew install cmake ninja
10190
91+
- name: Verify documentation
92+
run: scripts/verify-docs.sh
93+
94+
- name: Build SwiftPM (Xcode, iOS)
95+
shell: sh
96+
run: |
97+
xcodebuild -version
98+
swift --version
99+
rm -rf ~/Library/Developer/Xcode/DerivedData/*
100+
xcodebuild build -scheme mlx-swift-Package -destination 'generic/platform=iOS'
101+
102102
- name: Build SwiftPM (Xcode, macOS)
103103
shell: sh
104104
run: |

0 commit comments

Comments
 (0)