@@ -24,10 +24,10 @@ jobs:
2424 - name : Checkout code
2525 uses : actions/checkout@v2
2626
27- - name : Set up Go 1.23
27+ - name : Set up Go 1.22.5
2828 uses : actions/setup-go@v3
2929 with :
30- go-version : 1.23
30+ go-version : 1.22.5
3131
3232 - name : Clean build
3333 run : make clean-mobilesdk
5050
5151 - name : Compress
5252 run : |
53- tar -czvf zcncore-ios.tar.gz out/iossdk/ios/zcncore.xcframework
53+ # tar -czvf zcncore-ios.tar.gz out/iossdk/ios/zcncore.xcframework
54+ cp -r out/iossdk/ios/zcncore.xcframework .
55+ mv zcncore.xcframework zcncore-ios.xcframework
5456
5557 - name : Setup Build
5658 id : setup_build
@@ -76,17 +78,18 @@ jobs:
7678 uses : svenstaro/upload-release-action@v2
7779 with :
7880 repo_token : ${{ secrets.GITHUB_TOKEN }}
79- file : zcncore-ios.tar.gz
81+ file : zcncore-ios.xcframework
8082 tag : ${{ steps.setup_build.outputs.TAG }}
8183 overwrite : true
8284 file_glob : true
85+ body : " Go version 1.22.5 is used to build the binary for iOS."
8386
8487 - name : Upload Artifact
8588 uses : actions/upload-artifact@v4
8689 with :
8790 name : zcncore-ios
8891 path : |
89- zcncore-ios.tar.gz
92+ zcncore-ios.xcframework
9093
9194 build-android :
9295 name : Build-android
@@ -96,10 +99,10 @@ jobs:
9699 - name : Checkout code
97100 uses : actions/checkout@v2
98101
99- - name : Set up Go 1.23
102+ - name : Set up Go 1.22.5
100103 uses : actions/setup-go@v3
101104 with :
102- go-version : 1.23
105+ go-version : 1.22.5
103106
104107 - name : Install deps
105108 run : |
@@ -152,7 +155,10 @@ jobs:
152155 ANDROID_NDK_TOOLCHAIN : ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin
153156
154157 - name : Compress
155- run : tar -czvf zcncore-android.tar.gz out/androidsdk/zcncore.aar
158+ run : |
159+ # tar -czvf zcncore-android.tar.gz out/androidsdk/zcncore.aar
160+ cp -r out/androidsdk/zcncore.aar .
161+ mv zcncore.aar zcncore-android.aar
156162
157163 - name : Setup Build
158164 id : setup_build
@@ -180,16 +186,17 @@ jobs:
180186 uses : svenstaro/upload-release-action@v2
181187 with :
182188 repo_token : ${{ secrets.GITHUB_TOKEN }}
183- file : zcncore-android.tar.gz
189+ file : zcncore-android.aar
184190 tag : ${{ steps.setup_build.outputs.TAG }}
185191 overwrite : true
186192 file_glob : true
193+ body : " Go version 1.22.5 is used to build the binary for Android."
187194
188195 - name : Upload Artifact
189196 uses : actions/upload-artifact@v4
190197 with :
191198 name : zcncore-android
192- path : zcncore-android.tar.gz
199+ path : zcncore-android.aar
193200
194201 build-macos :
195202 name : Build-macos
@@ -199,10 +206,10 @@ jobs:
199206 - name : Checkout code
200207 uses : actions/checkout@v2
201208
202- - name : Set up Go 1.23
209+ - name : Set up Go 1.22.5
203210 uses : actions/setup-go@v3
204211 with :
205- go-version : 1.23
212+ go-version : 1.22.5
206213
207214 - name : Clean build
208215 run : make clean-mobilesdk
@@ -255,6 +262,7 @@ jobs:
255262 tag : ${{ steps.setup_build.outputs.TAG }}
256263 overwrite : true
257264 file_glob : true
265+ body : " Go version 1.22.5 is used to build the binary for macos."
258266
259267 - name : Upload Artifact
260268 uses : actions/upload-artifact@v4
@@ -271,10 +279,10 @@ jobs:
271279 - name : Checkout code
272280 uses : actions/checkout@v2
273281
274- - name : Set up Go 1.23
282+ - name : Set up Go 1.22.5
275283 uses : actions/setup-go@v3
276284 with :
277- go-version : 1.23
285+ go-version : 1.22.5
278286
279287 - name : Install deps
280288 run : |
@@ -323,6 +331,7 @@ jobs:
323331 tag : ${{ steps.setup_build.outputs.TAG }}
324332 overwrite : true
325333 file_glob : true
334+ body : " Go version 1.22.5 is used to build the binary for Windows."
326335
327336 - name : Upload Artifact
328337 uses : actions/upload-artifact@v4
@@ -335,10 +344,10 @@ jobs:
335344 name : Build-wasm
336345 runs-on : [self-hosted, arc-runner]
337346 steps :
338- - name : Set up Go 1.23
347+ - name : Set up Go 1.22.5
339348 uses : actions/setup-go@v3
340349 with :
341- go-version : 1.23
350+ go-version : 1.22.5
342351
343352 - name : Checkout
344353 uses : actions/checkout@v3
@@ -350,9 +359,9 @@ jobs:
350359
351360 - name : Build
352361 run : |
353- docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.23 make wasm-build
354- gzip -9 zcn.wasm && mv zcn.wasm.gz zcn.wasm
355- tar -czvf zcn_wasm .tar.gz zcn.wasm
362+ docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.22.5 make wasm-build
363+ gzip -9 zcn.wasm && mv zcn.wasm.gz normal- zcn.wasm
364+ # tar -czvf zcn_normal_wasm .tar.gz normal- zcn.wasm
356365
357366 - name : Setup Build
358367 id : setup_build
@@ -378,14 +387,15 @@ jobs:
378387 uses : svenstaro/upload-release-action@v2
379388 with :
380389 repo_token : ${{ secrets.GITHUB_TOKEN }}
381- file : zcn_wasm.tar.gz
390+ file : normal-zcn.wasm
382391 tag : ${{ steps.setup_build.outputs.TAG }}
383392 overwrite : true
384393 file_glob : true
394+ body : " Go version 1.22.5 is used to build the binary for Ubuntu/Linux."
385395
386396 - name : ' Upload Artifact'
387397 uses : actions/upload-artifact@v4
388398 with :
389- name : zcn_wasm
399+ name : zcn_normal_wasm
390400 path : |
391- zcn_wasm.tar.gz
401+ normal-zcn.wasm
0 commit comments