@@ -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
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 :
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
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
0 commit comments