Skip to content

Commit bd0e8be

Browse files
authored
Merge pull request #476 from hashgraph/sr/query-execute
refactor: Split SDKs, take 2
2 parents b3d8f2b + d8ef093 commit bd0e8be

File tree

315 files changed

+13876
-8480
lines changed

Some content is hidden

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

315 files changed

+13876
-8480
lines changed

.github/workflows/rust-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141

4242
- name: Check
43-
run: cargo check --features ffi
43+
run: cargo check --workspace
4444

4545

4646
test:
@@ -62,4 +62,4 @@ jobs:
6262
repo-token: ${{ secrets.GITHUB_TOKEN }}
6363

6464
- name: Test
65-
run: cargo test --features ffi
65+
run: cargo test --workspace

.github/workflows/swift-ci.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,16 @@ jobs:
3131
workspaces: |
3232
sdk/rust
3333
34-
- name: Install Protoc
35-
uses: arduino/setup-protoc@v1
36-
with:
37-
repo-token: ${{ secrets.GITHUB_TOKEN }}
38-
39-
- name: Install rust-src
40-
run: rustup component add rust-src
41-
4234
- name: Add target `${{ matrix.target }}`
4335
run: rustup target add ${{ matrix.target }}
4436
- name: Build for `${{ matrix.target }}`
45-
run: cargo build --features ffi -p hedera --target ${{ matrix.target }}
37+
run: cargo build -p hedera-crypto --target ${{ matrix.target }}
4638

4739
- name: 'Upload `${{ matrix.target }}` Artifact'
4840
uses: actions/upload-artifact@v3
4941
with:
5042
name: chedera-${{ matrix.target }}
51-
path: sdk/rust/target/${{ matrix.target }}/debug/libhedera.a
43+
path: sdk/rust/target/${{ matrix.target }}/debug/libhedera_crypto.a
5244
retention-days: 1
5345
- name: 'Upload `${{ matrix.target }}` Artifact'
5446
uses: actions/upload-artifact@v3
@@ -69,7 +61,7 @@ jobs:
6961
build:
7062
strategy:
7163
matrix:
72-
swift: ["5.5", "5.7"]
64+
swift: ["5.7"]
7365
needs: build-ffi
7466
runs-on: macos-11
7567
steps:
@@ -95,7 +87,7 @@ jobs:
9587
mkdir -p sdk/swift/CHedera.xcframework/macos-universal/Headers
9688
cp sdk/swift/CHedera.xcframework/module.modulemap sdk/swift/CHedera.xcframework/macos-universal/headers
9789
cp .tmp/chedera-aarch64-apple-darwin/hedera.h sdk/swift/CHedera.xcframework/macos-universal/headers
98-
lipo .tmp/chedera-aarch64-apple-darwin/libhedera.a .tmp/chedera-x86_64-apple-darwin/libhedera.a -output sdk/swift/CHedera.xcframework/macos-universal/libhedera.a -create
90+
lipo .tmp/chedera-aarch64-apple-darwin/libhedera_crypto.a .tmp/chedera-x86_64-apple-darwin/libhedera_crypto.a -output sdk/swift/CHedera.xcframework/macos-universal/libhedera.a -create
9991
working-directory: .
10092

10193
- name: Build
@@ -104,7 +96,7 @@ jobs:
10496
test:
10597
strategy:
10698
matrix:
107-
swift: ["5.5", "5.7"]
99+
swift: ["5.7"]
108100
needs: [build-ffi, build]
109101
runs-on: macos-11
110102
steps:
@@ -120,24 +112,18 @@ jobs:
120112
restore-keys: |
121113
${{ runner.os }}-${{ matrix.swift }}-spm-
122114
123-
- name: Download CHedera `x86_64-apple-darwin`
124-
uses: actions/download-artifact@v3
125-
with:
126-
name: chedera-x86_64-apple-darwin
127-
path: .tmp/chedera/x86_64-apple-darwin
128115
129-
- name: Download CHedera `aarch64-apple-darwin`
116+
- name: Download CHedera artifacts
130117
uses: actions/download-artifact@v3
131118
with:
132-
name: chedera-aarch64-apple-darwin
133-
path: .tmp/chedera/aarch64-apple-darwin
119+
path: .tmp/
134120

135121
- name: merge into macos-universal
136122
run: |
137123
mkdir -p sdk/swift/CHedera.xcframework/macos-universal/Headers
138124
cp sdk/swift/CHedera.xcframework/module.modulemap sdk/swift/CHedera.xcframework/macos-universal/headers
139-
cp .tmp/chedera/aarch64-apple-darwin/hedera.h sdk/swift/CHedera.xcframework/macos-universal/headers
140-
lipo .tmp/chedera/aarch64-apple-darwin/libhedera.a .tmp/chedera/x86_64-apple-darwin/libhedera.a -output sdk/swift/CHedera.xcframework/macos-universal/libhedera.a -create
125+
cp .tmp/chedera-aarch64-apple-darwin/hedera.h sdk/swift/CHedera.xcframework/macos-universal/headers
126+
lipo .tmp/chedera-aarch64-apple-darwin/libhedera_crypto.a .tmp/chedera-x86_64-apple-darwin/libhedera_crypto.a -output sdk/swift/CHedera.xcframework/macos-universal/libhedera.a -create
141127
working-directory: .
142128

143129
- name: Test

sdk.code-workspace

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@
2020
],
2121
"settings": {
2222
"git.alwaysSignOff": true,
23-
"rust-analyzer.cargo.features": [
24-
"ffi"
25-
]
2623
}
2724
}

0 commit comments

Comments
 (0)