Skip to content

Commit 4b1e12b

Browse files
ci: test swift workflow cleanup
1 parent 45b3709 commit 4b1e12b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/test-swift.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: Test Swift
2+
3+
# Tests the Swift bindings for bdk-ffi on macOS.
4+
# Builds the Swift package and runs unit tests.
5+
# Triggered by changes to bdk-ffi or bdk-swift directories, or manually via workflow_dispatch.
6+
27
on:
38
workflow_dispatch:
49
push:
@@ -13,19 +18,24 @@ on:
1318
permissions: {}
1419

1520
jobs:
16-
build:
17-
name: "Build and test"
18-
runs-on: macos-13
21+
test:
22+
name: "Test Swift library"
23+
runs-on: macos-14
24+
defaults:
25+
run:
26+
working-directory: bdk-swift
27+
1928
steps:
2029
- name: "Checkout"
2130
uses: actions/checkout@v4
2231
with:
2332
persist-credentials: false
2433

34+
- name: "Set up Rust"
35+
uses: actions-rust-lang/setup-rust-toolchain@v1
36+
2537
- name: "Build Swift package"
26-
working-directory: bdk-swift
2738
run: bash ./build-xcframework.sh
2839

2940
- name: "Run Swift tests"
30-
working-directory: bdk-swift
3141
run: swift test --filter Offline

0 commit comments

Comments
 (0)