Skip to content

Commit 0b3806c

Browse files
Merge branch 'v2.1-dev' into test/dapi-cli
2 parents 1202c41 + 37bdbf4 commit 0b3806c

File tree

205 files changed

+22374
-862
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+22374
-862
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN set -ex; \
6363
rm /tmp/cargo-binstall; \
6464
cargo binstall -V
6565
66-
RUN cargo binstall wasm-bindgen-cli@0.2.100 --locked \
66+
RUN cargo binstall wasm-bindgen-cli@0.2.103 --locked \
6767
--no-discover-github-token \
6868
--disable-telemetry \
6969
--no-track \

.github/actions/local-network/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ runs:
8282
docker pull ${{ inputs.image_org }}/dashmate-helper:$SHA_TAG
8383
docker tag ${{ inputs.image_org }}/dashmate-helper:$SHA_TAG dashpay/dashmate-helper:$VERSION
8484
85-
# Replace DAPI and Drive images with new org and tag in dashmate config
86-
sed -i -E "s/dashpay\/(drive|dapi):[^\"]+/${{ inputs.image_org }}\/\1:${SHA_TAG}/g" ${{ env.HOME }}/.dashmate/config.json
85+
# Replace Drive, DAPI, and RS-DAPI images with new org and tag in dashmate config
86+
sed -i -E "s/dashpay\/(drive|dapi|rs-dapi):[^\"]+/${{ inputs.image_org }}\/\1:${SHA_TAG}/g" ${{ env.HOME }}/.dashmate/config.json
8787
8888
cat ${{ env.HOME }}/.dashmate/config.json
8989

.github/package-filters/rs-packages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ rs-dapi-client: &dapi_client
6969
- packages/rs-dapi-client/**
7070
- *dapi_grpc
7171

72+
rs-dapi:
73+
- .github/workflows/tests*
74+
- packages/rs-dapi/**
75+
- *dapi_grpc
76+
- *dpp
77+
7278
dash-sdk: &sdk
7379
- .github/workflows/tests*
7480
- packages/rs-drive-proof-verifier/**

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
scopes: |
3535
sdk
3636
dapi
37+
rs-dapi
3738
platform
3839
drive
3940
drive-abci

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
if: ${{ steps.check-artifact.outputs.exists != 'true' }}
7171

7272
- name: Install wasm-bindgen-cli
73-
run: cargo binstall wasm-bindgen-cli@0.2.100
73+
run: cargo binstall wasm-bindgen-cli@0.2.103
7474
if: ${{ steps.check-artifact.outputs.exists != 'true' }}
7575

7676
- name: Install wasm-pack
@@ -191,6 +191,18 @@ jobs:
191191
target: dapi
192192
tag: ${{ inputs.tag || github.event.release.tag_name }}
193193

194+
release-rs-dapi-image:
195+
name: Release RS-DAPI image
196+
if: ${{ !inputs.only_drive }}
197+
secrets: inherit
198+
uses: ./.github/workflows/release-docker-image.yml
199+
with:
200+
name: RS-DAPI
201+
image_org: dashpay
202+
image_name: rs-dapi
203+
target: rs-dapi
204+
tag: ${{ inputs.tag || github.event.release.tag_name }}
205+
194206
release-test-suite-image:
195207
name: Release Test Suite image
196208
if: ${{ !inputs.only_drive }}

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
build-and-release:
1818
name: Build and release DashSDKFFI
1919
runs-on: macos-15
20+
timeout-minutes: 45
2021

2122
steps:
2223
- name: Checkout repository

.github/workflows/tests-build-js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
if: ${{ steps.check-artifact.outputs.exists != 'true' }}
5555

5656
- name: Install wasm-bindgen-cli
57-
run: cargo binstall wasm-bindgen-cli@0.2.100
57+
run: cargo binstall wasm-bindgen-cli@0.2.103
5858
if: ${{ steps.check-artifact.outputs.exists != 'true' }}
5959

6060
- name: Install wasm-pack

.github/workflows/tests-dashmate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ jobs:
6767
docker pull $DOCKER_HUB_ORG/dapi:$SHA_TAG
6868
docker tag $DOCKER_HUB_ORG/dapi:$SHA_TAG $DAPI_IMAGE_AND_VERSION
6969
70+
# RS-DAPI
71+
RS_DAPI_IMAGE_AND_VERSION=$(yarn dashmate config get --config=local platform.dapi.rsDapi.docker.image)
72+
docker pull $DOCKER_HUB_ORG/rs-dapi:$SHA_TAG
73+
docker tag $DOCKER_HUB_ORG/rs-dapi:$SHA_TAG $RS_DAPI_IMAGE_AND_VERSION
74+
7075
# Dashmate helper image is hardcoded so we replace it with the built one
7176
VERSION=$(cat package.json | jq -r '.version')
7277
docker pull $DOCKER_HUB_ORG/dashmate-helper:$SHA_TAG

.github/workflows/tests-rs-sdk-ffi-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
name: Build rs-sdk-ffi for iOS targets
2626
# macOS runners are required to access Apple SDKs (no osxcross here)
2727
runs-on: macos-latest
28+
timeout-minutes: 45
2829
strategy:
2930
fail-fast: false
3031
matrix:

0 commit comments

Comments
 (0)