@@ -18,21 +18,21 @@ jobs:
1818 - uses : actions/checkout@v4
1919 - name : Compile
2020 run : |
21- cd bindings/dart/rust
2221 rustup set profile minimal
2322 rustup toolchain install stable
2423 rustup default stable
2524 rustup override set stable
2625 rustup target add --toolchain stable ${{ matrix.target }}
27- cargo build --release --target=${{ matrix.target }}
28- cd ../../../
26+ cargo build --package bindings_sdk --features="uniffi_plugin" --release --target=${{ matrix.target }}
2927 move target\${{ matrix.target }}\release\*.dll .
30- 7z a ${{ matrix.target }}.7z *.dll
28+ move target\${{ matrix.target }}\release\*.lib .
29+ 7z a ${{ matrix.target }}_runtime.7z *.dll
30+ 7z a ${{ matrix.target }}_library.7z *.lib
3131 - name : Upload
3232 uses : svenstaro/upload-release-action@v2
3333 with :
3434 repo_token : ${{ secrets.GITHUB_TOKEN }}
35- file : ${{ matrix.target }}.7z
35+ file : " *.7z "
3636 tag : ${{ github.ref }}
3737 overwrite : true
3838 file_glob : true
@@ -49,21 +49,21 @@ jobs:
4949 - uses : actions/checkout@v4
5050 - name : Compile
5151 run : |
52- cd bindings/dart/rust
5352 rustup set profile minimal
5453 rustup toolchain install stable
5554 rustup default stable
5655 rustup override set stable
5756 rustup target add --toolchain stable ${{ matrix.target }}
58- cargo build --release --target=${{ matrix.target }}
59- cd ../../../
57+ cargo build --package bindings_sdk --features="uniffi_plugin" --release --target=${{ matrix.target }}
6058 mv target/${{ matrix.target }}/release/*.dylib .
61- tar acf ${{ matrix.target }}.tar.xz *.dylib
59+ mv target/${{ matrix.target }}/release/*.a .
60+ tar acf ${{ matrix.target }}_runtime.tar.xz *.dylib
61+ tar acf ${{ matrix.target }}_library.tar.xz *.a
6262 - name : Upload
6363 uses : svenstaro/upload-release-action@v2
6464 with :
6565 repo_token : ${{ secrets.GITHUB_TOKEN }}
66- file : ${{ matrix.target }}. tar.xz
66+ file : " *. tar.xz"
6767 tag : ${{ github.ref }}
6868 overwrite : true
6969 file_glob : true
@@ -82,22 +82,104 @@ jobs:
8282 - uses : actions/checkout@v4
8383 - name : Compile
8484 run : |
85- cd bindings/dart/rust
8685 rustup set profile minimal
8786 rustup toolchain install stable
8887 rustup default stable
8988 rustup override set stable
9089 rustup target add --toolchain stable ${{ matrix.target }}
9190 cargo install cross --git https://github.com/cross-rs/cross
92- cross build --release --target=${{ matrix.target }}
93- cd ../../../
91+ cross build --package bindings_sdk --features="uniffi_plugin" --release --target=${{ matrix.target }}
9492 mv target/${{ matrix.target }}/release/*.so .
95- tar acf ${{ matrix.target }}.tar.xz *.so
93+ mv target/${{ matrix.target }}/release/*.a .
94+ tar acf ${{ matrix.target }}_runtime.tar.xz *.so
95+ tar acf ${{ matrix.target }}_library.tar.xz *.a
9696 - name : Upload
9797 uses : svenstaro/upload-release-action@v2
9898 with :
9999 repo_token : ${{ secrets.GITHUB_TOKEN }}
100- file : ${{ matrix.target }}.tar.xz
100+ file : " *.tar.xz"
101+ tag : ${{ github.ref }}
102+ overwrite : true
103+ file_glob : true
104+ build_wasm :
105+ runs-on : ubuntu-latest
106+ steps :
107+ - uses : actions/checkout@v4
108+ - name : Compile
109+ run : |
110+ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
111+ make build_wasm
112+ mv bindings/wasm/*dist ./
113+ rm *dist/.gitignore
114+ tar acf js_binding.tar.xz *dist
115+ - name : Upload
116+ uses : svenstaro/upload-release-action@v2
117+ with :
118+ repo_token : ${{ secrets.GITHUB_TOKEN }}
119+ file : " *.tar.xz"
120+ tag : ${{ github.ref }}
121+ overwrite : true
122+ file_glob : true
123+ python_binding :
124+ runs-on : ubuntu-latest
125+ steps :
126+ - uses : actions/checkout@v4
127+ - name : Compile
128+ run : |
129+ make build_binding_files_python
130+ mv bindings/generated/*.py ./
131+ tar acf python_binding.tar.xz zklink*.py
132+ - name : Upload
133+ uses : svenstaro/upload-release-action@v2
134+ with :
135+ repo_token : ${{ secrets.GITHUB_TOKEN }}
136+ file : " *.tar.xz"
137+ tag : ${{ github.ref }}
138+ overwrite : true
139+ file_glob : true
140+ go_binding :
141+ runs-on : ubuntu-latest
142+ steps :
143+ - uses : actions/checkout@v4
144+ - uses : baptiste0928/cargo-install@v2
145+ with :
146+ crate : uniffi-bindgen-go
147+ git : https://github.com/NordSecurity/uniffi-bindgen-go
148+ tag : " v0.2.1+v0.25.0"
149+ cache-key :
" [email protected] +v0.25.0" 150+ - name : Compile
151+ run : |
152+ make build_binding_files_go
153+ mv bindings/generated/zklink_sdk ./
154+ tar acf go_binding.tar.xz zklink_sdk
155+ - name : Upload
156+ uses : svenstaro/upload-release-action@v2
157+ with :
158+ repo_token : ${{ secrets.GITHUB_TOKEN }}
159+ file : " *.tar.xz"
160+ tag : ${{ github.ref }}
161+ overwrite : true
162+ file_glob : true
163+ cpp_binding :
164+ runs-on : ubuntu-latest
165+ steps :
166+ - uses : actions/checkout@v4
167+ - uses : baptiste0928/cargo-install@v2
168+ with :
169+ crate : uniffi-bindgen-cpp
170+ git : https://github.com/NordSecurity/uniffi-bindgen-cpp
171+ tag : " v0.6.0+v0.25.0"
172+ cache-key :
" [email protected] +v0.25.0" 173+ - name : Compile
174+ run : |
175+ make build_binding_files_cpp
176+ mv bindings/generated/zklink* ./
177+ tar acf cpp_binding.tar.xz zklink*
178+ - name : Upload
179+ uses : svenstaro/upload-release-action@v2
180+ with :
181+ repo_token : ${{ secrets.GITHUB_TOKEN }}
182+ file : " *.tar.xz"
101183 tag : ${{ github.ref }}
102184 overwrite : true
103185 file_glob : true
0 commit comments