Skip to content

Commit 444800f

Browse files
fix
1 parent 15ad22f commit 444800f

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/swift-sdk-build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,35 @@ jobs:
9393
echo "PROTOC=$HOME/.local/protoc-32.0/bin/protoc" >> "$GITHUB_ENV"
9494
"$HOME/.local/protoc-32.0/bin/protoc" --version
9595
96+
- name: Determine rust-dashcore revision (from rs-dpp)
97+
id: dashcore_rev
98+
shell: bash
99+
run: |
100+
set -euo pipefail
101+
# Use the same rust-dashcore revision as rs-dpp
102+
REV=$(awk -F '"' '/^dashcore\s*=/{f=1} f&&/rev/{print $2; exit}' packages/rs-dpp/Cargo.toml || true)
103+
if [ -z "${REV:-}" ]; then
104+
echo "Failed to determine rust-dashcore revision from Cargo.toml" >&2
105+
exit 1
106+
fi
107+
echo "rev=$REV" >> "$GITHUB_OUTPUT"
108+
109+
- name: Checkout rust-dashcore at required revision
110+
shell: bash
111+
run: |
112+
set -euxo pipefail
113+
BASE_DIR="$(dirname "$GITHUB_WORKSPACE")"
114+
cd "$BASE_DIR"
115+
if [ -d rust-dashcore/.git ]; then
116+
echo "Updating existing rust-dashcore checkout"
117+
cd rust-dashcore
118+
git fetch --all --tags --prune
119+
else
120+
git clone --no-tags --filter=blob:none https://github.com/dashpay/rust-dashcore.git rust-dashcore
121+
cd rust-dashcore
122+
fi
123+
git checkout "${{ steps.dashcore_rev.outputs.rev }}"
124+
96125
- name: Build DashSDKFFI.xcframework and install into Swift package
97126
run: |
98127
bash packages/swift-sdk/build_ios.sh

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rs-sdk-ffi/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ simple-signer = { path = "../simple-signer" }
1919

2020
# Core SDK integration (always included for unified SDK)
2121
dash-spv-ffi = { git = "https://github.com/dashpay/rust-dashcore", rev = "befd0356bebfcd0d06d1028d8a03bfa4c78bd219", optional = true }
22-
dashcore = { git = "https://github.com/dashpay/rust-dashcore", rev = "befd0356bebfcd0d06d1028d8a03bfa4c78bd219" }
2322

2423
# FFI and serialization
2524
serde = { version = "1.0", features = ["derive"] }

0 commit comments

Comments
 (0)