Skip to content

Commit b71d75b

Browse files
authored
feat(ci): swift tests (#159)
* feat(ci): swift tests * now? * more targets * path? * manual copy * cleanup
1 parent c212da3 commit b71d75b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,22 @@ jobs:
9797
maturin develop && \
9898
python -m pytest -vvv
9999
100+
build_and_test_swift:
101+
name: Swift - Build and test
102+
timeout-minutes: 30
103+
runs-on: [macOS, ARM64]
104+
steps:
105+
- uses: actions/checkout@master
106+
- uses: dtolnay/rust-toolchain@stable
107+
with:
108+
targets: aarch64-apple-ios,aarch64-apple-ios-sim,x86_64-apple-ios,aarch64-apple-darwin
109+
- name: Swift tests
110+
run: |
111+
./make_swift.sh
112+
cp -R Iroh.xcframework IrohLib/artifacts/
113+
cd IrohLib
114+
swift test
115+
100116
build_and_test_kotlin:
101117
runs-on: ${{ matrix.runner }}
102118
timeout-minutes: 30

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For builds targeting older versions of macOS, build with: `MACOSX_DEPLOYMENT_TA
3232

3333
### Swift
3434

35-
[Notes here](https://github.com/n0-computer/iroh-ffi/blob/main/README.python.md)
35+
[Notes here](https://github.com/n0-computer/iroh-ffi/blob/main/README.swift.md)
3636

3737
### Python
3838

0 commit comments

Comments
 (0)