@@ -17,18 +17,13 @@ jobs:
1717 swift-sdk-build :
1818 name : Swift SDK and Example build (warnings as errors)
1919 runs-on : [self-hosted, macOS, ARM64]
20- timeout-minutes : 60
20+ timeout-minutes : 90
2121
2222 steps :
2323 - name : Checkout repository
2424 uses : actions/checkout@v4
2525
26- - name : Select Xcode 16
27- uses : maxim-lobanov/setup-xcode@v1
28- with :
29- xcode-version : ' 16.*'
30-
31- - name : Show Xcode and Swift versions
26+ - name : Show Xcode and Swift versions (use default on self-hosted runner)
3227 run : |
3328 xcodebuild -version
3429 swift --version
@@ -98,12 +93,19 @@ jobs:
9893 shell : bash
9994 run : |
10095 set -euo pipefail
101- # Use the same rust-dashcore revision as rs-dpp (parse single-line dep)
102- REV=$(grep -E '^[[:space:]]*dashcore[[:space:]]*=[[:space:]]*\{.*rev[[:space:]]*=' packages/rs-dpp/Cargo.toml \
103- | sed -E 's/.*rev[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/' \
96+ # Use the same rust-dashcore revision/tag as rs-dpp
97+ # Try to find tag first (preferred format)
98+ REV=$(grep -E '^[[:space:]]*dashcore[[:space:]]*=[[:space:]]*\{.*tag[[:space:]]*=' packages/rs-dpp/Cargo.toml \
99+ | sed -E 's/.*tag[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/' \
104100 | head -n1 || true)
101+ # If no tag found, try rev format
102+ if [ -z "${REV:-}" ]; then
103+ REV=$(grep -E '^[[:space:]]*dashcore[[:space:]]*=[[:space:]]*\{.*rev[[:space:]]*=' packages/rs-dpp/Cargo.toml \
104+ | sed -E 's/.*rev[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/' \
105+ | head -n1 || true)
106+ fi
105107 if [ -z "${REV:-}" ]; then
106- echo "Failed to determine rust-dashcore revision from Cargo.toml" >&2
108+ echo "Failed to determine rust-dashcore revision or tag from Cargo.toml" >&2
107109 exit 1
108110 fi
109111 echo "rev=$REV" >> "$GITHUB_OUTPUT"
@@ -119,7 +121,7 @@ jobs:
119121 cd rust-dashcore
120122 git fetch --all --tags --prune
121123 else
122- git clone --no-tags -- filter=blob:none https://github.com/dashpay/rust-dashcore.git rust-dashcore
124+ git clone --filter=blob:none https://github.com/dashpay/rust-dashcore.git rust-dashcore
123125 cd rust-dashcore
124126 fi
125127 git checkout "${{ steps.dashcore_rev.outputs.rev }}"
0 commit comments