@@ -41,19 +41,19 @@ jobs:
41
41
42
42
- name : Build prover Android ARM64
43
43
run : |
44
- mkdir build_prover_android && cd build_prover_android
44
+ mkdir -p build_prover_android && cd build_prover_android
45
45
cmake .. -DTARGET_PLATFORM=ANDROID -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package_android
46
46
make -j4 && make install
47
47
48
48
- name : Build prover Android x86_64
49
49
run : |
50
- mkdir build_prover_android_x86_64 && cd build_prover_android_x86_64
50
+ mkdir -p build_prover_android_x86_64 && cd build_prover_android_x86_64
51
51
cmake .. -DTARGET_PLATFORM=ANDROID_x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package_android_x86_64
52
52
make -j4 && make install
53
53
54
54
- name : Build prover Linux
55
55
run : |
56
- mkdir build_prover && cd build_prover
56
+ mkdir -p build_prover && cd build_prover
57
57
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package
58
58
make -j4 && make install
59
59
@@ -65,35 +65,62 @@ jobs:
65
65
package/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
66
66
snarkjs groth16 verify testdata/verification_key.json public.json proof.json
67
67
68
- - name : upload Android ARM64 artifacts
68
+ - name : upload Linux amd64 dev artifacts
69
+ if : github.event_name != 'release'
70
+ uses : actions/upload-artifact@v3
71
+ with :
72
+ name : rapidsnark-linux-amd64
73
+ path : |
74
+ package
75
+ if-no-files-found : error
76
+
77
+ - name : upload Android dev artifacts
78
+ if : github.event_name != 'release'
79
+ uses : actions/upload-artifact@v3
80
+ with :
81
+ name : rapidsnark-Android
82
+ path : |
83
+ package_android
84
+ if-no-files-found : error
85
+
86
+ - name : upload Android x86_64 dev artifacts
87
+ if : github.event_name != 'release'
88
+ uses : actions/upload-artifact@v3
89
+ with :
90
+ name : rapidsnark-Android-x86_64
91
+ path : |
92
+ package_android_x86_64
93
+ if-no-files-found : error
94
+
95
+ - name : upload Android ARM64 release artifacts
69
96
if : github.event_name == 'release'
70
97
env :
71
98
GH_TOKEN : ${{ github.token }}
72
99
run : |
73
100
set -x
74
- mkdir rapidsnark-android-arm64-${{ github.ref_name }}
101
+ mkdir -p rapidsnark-android-arm64-${{ github.ref_name }}
75
102
cp -r package_android/* rapidsnark-android-arm64-${{ github.ref_name }}/
76
103
zip -r rapidsnark-android-arm64-${{ github.ref_name }}.zip rapidsnark-android-arm64-${{ github.ref_name }}
77
104
gh release upload ${{ github.event.release.tag_name }} rapidsnark-android-arm64-${{ github.ref_name }}.zip
78
105
79
- - name : upload Android x86_64 artifacts
106
+ - name : upload Android x86_64 release artifacts
80
107
if : github.event_name == 'release'
81
108
env :
82
109
GH_TOKEN : ${{ github.token }}
83
110
run : |
84
111
set -x
85
- mkdir rapidsnark-android-x86_64-${{ github.ref_name }}
112
+ mkdir -p rapidsnark-android-x86_64-${{ github.ref_name }}
86
113
cp -r package_android_x86_64/* rapidsnark-android-x86_64-${{ github.ref_name }}/
87
114
zip -r rapidsnark-android-x86_64-${{ github.ref_name }}.zip rapidsnark-android-x86_64-${{ github.ref_name }}
88
115
gh release upload ${{ github.event.release.tag_name }} rapidsnark-android-x86_64-${{ github.ref_name }}.zip
89
116
90
- - name : upload Linux x86_64 artifacts
117
+ - name : upload Linux x86_64 release artifacts
91
118
if : github.event_name == 'release'
92
119
env :
93
120
GH_TOKEN : ${{ github.token }}
94
121
run : |
95
122
set -x
96
- mkdir rapidsnark-linux-x86_64-${{ github.ref_name }}
123
+ mkdir -p rapidsnark-linux-x86_64-${{ github.ref_name }}
97
124
cp -r package/* rapidsnark-linux-x86_64-${{ github.ref_name }}/
98
125
zip -r rapidsnark-linux-x86_64-${{ github.ref_name }}.zip rapidsnark-linux-x86_64-${{ github.ref_name }}
99
126
gh release upload ${{ github.event.release.tag_name }} rapidsnark-linux-x86_64-${{ github.ref_name }}.zip
@@ -119,19 +146,19 @@ jobs:
119
146
if [[ ! -d "depends/gmp/package_iphone_simulator" ]]; then ./build_gmp.sh ios_simulator; fi
120
147
if [[ ! -d "depends/gmp/package_macos_arm64" ]]; then ./build_gmp.sh macos_arm64; fi
121
148
122
- mkdir build_prover_ios && cd build_prover_ios
149
+ mkdir -p build_prover_ios && cd build_prover_ios
123
150
cmake .. -GXcode -DTARGET_PLATFORM=IOS -DCMAKE_INSTALL_PREFIX=../package_ios
124
151
xcodebuild -destination 'generic/platform=iOS' -scheme rapidsnarkStatic -project rapidsnark.xcodeproj -configuration Release
125
152
cp ../depends/gmp/package_ios_arm64/lib/libgmp.a src/Release-iphoneos
126
153
cd ../
127
154
128
- mkdir build_prover_ios_simulator && cd build_prover_ios_simulator
155
+ mkdir -p build_prover_ios_simulator && cd build_prover_ios_simulator
129
156
cmake .. -GXcode -DTARGET_PLATFORM=IOS -DCMAKE_INSTALL_PREFIX=../package_ios_simulator -DUSE_ASM=NO
130
157
xcodebuild -destination 'generic/platform=iOS Simulator' -scheme rapidsnarkStatic -project rapidsnark.xcodeproj
131
158
cp ../depends/gmp/package_iphone_simulator/lib/libgmp.a src/Debug-iphonesimulator
132
159
cd ../
133
160
134
- mkdir build_prover_macos_arm64 && cd build_prover_macos_arm64
161
+ mkdir -p build_prover_macos_arm64 && cd build_prover_macos_arm64
135
162
cmake .. -DTARGET_PLATFORM=macos_arm64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package_macos_arm64
136
163
make -j4 && make install
137
164
@@ -143,35 +170,62 @@ jobs:
143
170
package_macos_arm64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
144
171
snarkjs groth16 verify testdata/verification_key.json public.json proof.json
145
172
146
- - name : upload iOS artifacts
173
+ - name : upload macOS arm64 dev artifacts
174
+ if : github.event_name != 'release'
175
+ uses : actions/upload-artifact@v3
176
+ with :
177
+ name : rapidsnark-macOS-arm64
178
+ path : |
179
+ package_macos_arm64
180
+ if-no-files-found : error
181
+
182
+ - name : upload iOS dev artifacts
183
+ if : github.event_name != 'release'
184
+ uses : actions/upload-artifact@v3
185
+ with :
186
+ name : rapidsnark-iOS
187
+ path : |
188
+ build_prover_ios/src/Release-iphoneos
189
+ if-no-files-found : error
190
+
191
+ - name : upload iOS Simulator dev artifacts
192
+ if : github.event_name != 'release'
193
+ uses : actions/upload-artifact@v3
194
+ with :
195
+ name : rapidsnark-iOS-Simulator
196
+ path : |
197
+ build_prover_ios_simulator/src/Debug-iphonesimulator
198
+ if-no-files-found : error
199
+
200
+ - name : upload iOS release artifacts
147
201
if : github.event_name == 'release'
148
202
env :
149
203
GH_TOKEN : ${{ github.token }}
150
204
run : |
151
205
set -x
152
- mkdir rapidsnark-iOS-${{ github.ref_name }}
206
+ mkdir -p rapidsnark-iOS-${{ github.ref_name }}
153
207
cp -r build_prover_ios/src/Release-iphoneos/* rapidsnark-iOS-${{ github.ref_name }}/
154
208
zip -r rapidsnark-iOS-${{ github.ref_name }}.zip rapidsnark-iOS-${{ github.ref_name }}
155
209
gh release upload ${{ github.event.release.tag_name }} rapidsnark-iOS-${{ github.ref_name }}.zip
156
210
157
- - name : upload iOS Simulator artifacts
211
+ - name : upload iOS Simulator release artifacts
158
212
if : github.event_name == 'release'
159
213
env :
160
214
GH_TOKEN : ${{ github.token }}
161
215
run : |
162
216
set -x
163
- mkdir rapidsnark-iOS-Simulator-${{ github.ref_name }}
217
+ mkdir -p rapidsnark-iOS-Simulator-${{ github.ref_name }}
164
218
cp -r build_prover_ios_simulator/src/Debug-iphonesimulator/* rapidsnark-iOS-Simulator-${{ github.ref_name }}/
165
219
zip -r rapidsnark-iOS-Simulator-${{ github.ref_name }}.zip rapidsnark-iOS-Simulator-${{ github.ref_name }}
166
220
gh release upload ${{ github.event.release.tag_name }} rapidsnark-iOS-Simulator-${{ github.ref_name }}.zip
167
221
168
- - name : upload macOS arm64 artifacts
222
+ - name : upload macOS arm64 release artifacts
169
223
if : github.event_name == 'release'
170
224
env :
171
225
GH_TOKEN : ${{ github.token }}
172
226
run : |
173
227
set -x
174
- mkdir rapidsnark-macOS-arm64-${{ github.ref_name }}
228
+ mkdir -p rapidsnark-macOS-arm64-${{ github.ref_name }}
175
229
cp -r package_macos_arm64/* rapidsnark-macOS-arm64-${{ github.ref_name }}/
176
230
zip -r rapidsnark-macOS-arm64-${{ github.ref_name }}.zip rapidsnark-macOS-arm64-${{ github.ref_name }}
177
231
gh release upload ${{ github.event.release.tag_name }} rapidsnark-macOS-arm64-${{ github.ref_name }}.zip
@@ -199,7 +253,7 @@ jobs:
199
253
run : |
200
254
if [[ ! -d "depends/gmp/package_macos_x86_64" ]]; then ./build_gmp.sh macos_x86_64; fi
201
255
202
- mkdir build_prover_macos_x86_64 && cd build_prover_macos_x86_64
256
+ mkdir -p build_prover_macos_x86_64 && cd build_prover_macos_x86_64
203
257
cmake .. -DTARGET_PLATFORM=macos_x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package_macos_x86_64
204
258
make -j4 && make install
205
259
@@ -211,13 +265,22 @@ jobs:
211
265
package_macos_x86_64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
212
266
snarkjs groth16 verify testdata/verification_key.json public.json proof.json
213
267
214
- - name : upload macOS x86_64 artifacts
268
+ - name : upload macOS x86_64 dev artifacts
269
+ if : github.event_name != 'release'
270
+ uses : actions/upload-artifact@v3
271
+ with :
272
+ name : rapidsnark-macOS-x86_64
273
+ path : |
274
+ package_macos_x86_64
275
+ if-no-files-found : error
276
+
277
+ - name : upload macOS x86_64 release artifacts
215
278
if : github.event_name == 'release'
216
279
env :
217
280
GH_TOKEN : ${{ github.token }}
218
281
run : |
219
282
set -x
220
- mkdir rapidsnark-macOS-x86_64-${{ github.ref_name }}
283
+ mkdir -p rapidsnark-macOS-x86_64-${{ github.ref_name }}
221
284
cp -r package_macos_x86_64/* rapidsnark-macOS-x86_64-${{ github.ref_name }}/
222
285
zip -r rapidsnark-macOS-x86_64-${{ github.ref_name }}.zip rapidsnark-macOS-x86_64-${{ github.ref_name }}
223
286
gh release upload ${{ github.event.release.tag_name }} rapidsnark-macOS-x86_64-${{ github.ref_name }}.zip
0 commit comments