@@ -26,39 +26,39 @@ jobs:
26
26
- name : Install Vulkan
27
27
run : .github/tools/linux-install-vulkan.sh
28
28
29
- - run : cmake .
30
- - run : make
29
+ - run : cmake -B build
30
+ - run : cmake --build build
31
31
32
32
- name : Copy library
33
- run : cp src/libgpu-setup.so test/libgpu-setup.so
33
+ run : cp build/ src/libgpu-setup.so build/ test/libgpu-setup.so
34
34
35
35
- name : Unit tests - Golden vectors
36
- run : test/gpu-setup-test --test-vector-check
36
+ run : build/ test/gpu-setup-test --test-vector-check
37
37
- name : Unit tests - hash and bitstream
38
- run : test/gpu-setup-test --unit-tests
38
+ run : build/ test/gpu-setup-test --unit-tests
39
39
- name : Unit tests - PoW
40
- run : test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
40
+ run : build/ test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
41
41
- name : Unit tests - PoW and Leafs
42
- run : test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
42
+ run : build/ test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
43
43
- name : Unit tests - label lengths
44
- run : test/gpu-setup-test -il
44
+ run : build/ test/gpu-setup-test -il
45
45
- name : Unit tests - labels count
46
- run : test/gpu-setup-test -in
46
+ run : build/ test/gpu-setup-test -in
47
47
- name : Integration tests - concurrency test
48
- run : test/gpu-setup-test -ip
48
+ run : build/ test/gpu-setup-test -ip
49
49
- name : Integration tests - cancellation test
50
- run : test/gpu-setup-test -ic
50
+ run : build/ test/gpu-setup-test -ic
51
51
52
52
- name : Upload lib
53
53
uses : actions/upload-artifact@v2
54
54
with :
55
55
name : linux
56
- path : src/libgpu-setup.so
56
+ path : build/ src/libgpu-setup.so
57
57
- name : Upload test-app
58
58
uses : actions/upload-artifact@v2
59
59
with :
60
60
name : linux
61
- path : test/gpu-setup-test
61
+ path : build/ test/gpu-setup-test
62
62
- name : Upload api.h
63
63
uses : actions/upload-artifact@v2
64
64
with :
@@ -129,12 +129,24 @@ jobs:
129
129
- name : Build
130
130
run : |
131
131
call "${{ env.vs_path }}\VC\Auxiliary\Build\vcvars64.bat"
132
- mkdir build
133
- cd build
134
- "${{ env.vs_path }}\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake" -G "Ninja" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_IGNORE_PATH="C:/Strawberry/c/bin;C:/ProgramData/chocolatey/bin" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v${{ env.CUDA_WINDOWS_SHORT }}" -DCMAKE_MAKE_PROGRAM="${{ env.vs_path }}\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe" ..
135
- cmake --build .
132
+ "${{ env.vs_path }}\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake" -G "Ninja" -B build -DCMAKE_BUILD_TYPE="Release" -DCMAKE_IGNORE_PATH="C:/Strawberry/c/bin;C:/ProgramData/chocolatey/bin" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v${{ env.CUDA_WINDOWS_SHORT }}" -DCMAKE_MAKE_PROGRAM="${{ env.vs_path }}\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
133
+ cmake --build build
136
134
shell : cmd
137
135
136
+ - name : Setup msys2
137
+ uses : msys2/setup-msys2@v2
138
+ with :
139
+ msystem : mingw64
140
+ pacboy : >-
141
+ toolchain:p
142
+
143
+ - name : Convert library to gnu format
144
+ run : |
145
+ cd build/src
146
+ gendef gpu-setup.dll
147
+ dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libgpu-setup.a --input-def gpu-setup.def
148
+ shell : msys2 {0}
149
+
138
150
- name : Copy library
139
151
shell : bash
140
152
run : cp build/src/gpu-setup.dll build/test/gpu-setup.dll
@@ -166,6 +178,11 @@ jobs:
166
178
with :
167
179
name : windows
168
180
path : build/src/gpu-setup.lib
181
+ - name : Upload gnu lib
182
+ uses : actions/upload-artifact@v2
183
+ with :
184
+ name : windows
185
+ path : build/src/libgpu-setup.a
169
186
- name : Upload test app
170
187
uses : actions/upload-artifact@v2
171
188
with :
@@ -219,41 +236,41 @@ jobs:
219
236
echo "PATH=${VULKAN_SDK}/bin:$PATH" >> $GITHUB_ENV
220
237
echo "DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${VULKAN_SDK}/lib" >> $GITHUB_ENV
221
238
222
- - run : cmake -DSPACEMESHCUDA=OFF .
223
- - run : make
239
+ - run : cmake -DSPACEMESHCUDA=OFF -B build
240
+ - run : cmake --build build
224
241
225
242
- name : Copy library
226
- run : cp src/libgpu-setup.dylib test/libgpu-setup.dylib
243
+ run : cp build/ src/libgpu-setup.dylib build/ test/libgpu-setup.dylib
227
244
- name : Fix library import paths
228
- run : install_name_tool -add_rpath @loader_path test/libgpu-setup.dylib
245
+ run : install_name_tool -add_rpath @loader_path build/ test/libgpu-setup.dylib
229
246
230
247
- name : Unit tests - Golden vectors
231
- run : test/gpu-setup-test --test-vector-check
248
+ run : build/ test/gpu-setup-test --test-vector-check
232
249
- name : Unit tests - hash and bitstream
233
- run : test/gpu-setup-test --unit-tests
250
+ run : build/ test/gpu-setup-test --unit-tests
234
251
- name : Unit tests - PoW
235
- run : test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
252
+ run : build/ test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
236
253
- name : Unit tests - PoW and Leafs
237
- run : test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
254
+ run : build/ test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
238
255
- name : Unit tests - label lengths
239
- run : test/gpu-setup-test -il
256
+ run : build/ test/gpu-setup-test -il
240
257
- name : Unit tests - labels count
241
- run : test/gpu-setup-test -in
258
+ run : build/ test/gpu-setup-test -in
242
259
- name : Integration tests - concurrency test
243
- run : test/gpu-setup-test -ip
260
+ run : build/ test/gpu-setup-test -ip
244
261
- name : Integration tests - cancellation test
245
- run : test/gpu-setup-test -ic
262
+ run : build/ test/gpu-setup-test -ic
246
263
247
264
- name : Upload library
248
265
uses : actions/upload-artifact@v2
249
266
with :
250
267
name : macos
251
- path : src/libgpu-setup.dylib
268
+ path : build/ src/libgpu-setup.dylib
252
269
- name : Upload test app
253
270
uses : actions/upload-artifact@v2
254
271
with :
255
272
name : macos
256
- path : test/gpu-setup-test
273
+ path : build/ test/gpu-setup-test
257
274
- name : Upload api.h
258
275
uses : actions/upload-artifact@v2
259
276
with :
@@ -279,41 +296,41 @@ jobs:
279
296
- name : Vulkan Info
280
297
run : vulkaninfo
281
298
282
- - run : arch -arm64 cmake -DSPACEMESHCUDA=OFF .
283
- - run : arch -arm64 make
299
+ - run : arch -arm64 cmake -DSPACEMESHCUDA=OFF -B build
300
+ - run : arch -arm64 cmake --build build
284
301
285
302
- name : Copy library
286
- run : cp src/libgpu-setup.dylib test/libgpu-setup.dylib
303
+ run : cp build/ src/libgpu-setup.dylib build/ test/libgpu-setup.dylib
287
304
288
305
- name : Fix library import paths
289
- run : arch -arm64 install_name_tool -add_rpath @loader_path test/libgpu-setup.dylib
306
+ run : arch -arm64 install_name_tool -add_rpath @loader_path build/ test/libgpu-setup.dylib
290
307
- name : Unit tests - Golden vectors
291
- run : arch -arm64 test/gpu-setup-test --test-vector-check
308
+ run : arch -arm64 build/ test/gpu-setup-test --test-vector-check
292
309
- name : Unit tests - hash and bitstream
293
- run : arch -arm64 test/gpu-setup-test --unit-tests
310
+ run : arch -arm64 build/ test/gpu-setup-test --unit-tests
294
311
- name : Unit tests - PoW
295
- run : arch -arm64 test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
312
+ run : arch -arm64 build/ test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
296
313
- name : Unit tests - PoW and Leafs
297
- run : arch -arm64 test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
314
+ run : arch -arm64 build/ test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
298
315
- name : Unit tests - label lengths
299
- run : arch -arm64 test/gpu-setup-test -il
316
+ run : arch -arm64 build/ test/gpu-setup-test -il
300
317
- name : Unit tests - labels count
301
- run : arch -arm64 test/gpu-setup-test -in
318
+ run : arch -arm64 build/ test/gpu-setup-test -in
302
319
- name : Integration tests - concurrency test
303
- run : arch -arm64 test/gpu-setup-test -ip
320
+ run : arch -arm64 build/ test/gpu-setup-test -ip
304
321
- name : Integration tests - cancellation test
305
- run : arch -arm64 test/gpu-setup-test -ic
322
+ run : arch -arm64 build/ test/gpu-setup-test -ic
306
323
307
324
- name : Upload library
308
325
uses : actions/upload-artifact@v2
309
326
with :
310
327
name : macos-m1
311
- path : src/libgpu-setup.dylib
328
+ path : build/ src/libgpu-setup.dylib
312
329
- name : Upload test app
313
330
uses : actions/upload-artifact@v2
314
331
with :
315
332
name : macos-m1
316
- path : test/gpu-setup-test
333
+ path : build/ test/gpu-setup-test
317
334
- name : Upload api.h
318
335
uses : actions/upload-artifact@v2
319
336
with :
@@ -335,7 +352,7 @@ jobs:
335
352
name : macos-m1
336
353
path : ${{ env.VULKAN_ROOT_LOCATION }}/macOS/lib/libvulkan.1.dylib
337
354
338
- # # Temporarily disabled until VM becomes available again
355
+ # Temporarily disabled until linux arm64 VM becomes available again
339
356
#
340
357
# linux-arm64:
341
358
# runs-on: [self-hosted, linux]
@@ -345,39 +362,39 @@ jobs:
345
362
# with:
346
363
# submodules: true
347
364
348
- # - run: cmake -DSPACEMESH_ARCH_ARM64=ON .
349
- # - run: make
365
+ # - run: cmake -DSPACEMESH_ARCH_ARM64=ON -B build
366
+ # - run: cmake --build build
350
367
351
368
# - name: Copy library
352
- # run: cp src/libgpu-setup.so test/libgpu-setup.so
369
+ # run: cp build/ src/libgpu-setup.so build/ test/libgpu-setup.so
353
370
354
371
# - name: Unit tests - Golden vectors
355
- # run: test/gpu-setup-test --test-vector-check
372
+ # run: build/ test/gpu-setup-test --test-vector-check
356
373
# - name: Unit tests - hash and bitstream
357
- # run: test/gpu-setup-test --unit-tests
374
+ # run: build/ test/gpu-setup-test --unit-tests
358
375
# - name: Unit tests - PoW
359
- # run: test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
376
+ # run: build/ test/gpu-setup-test -tp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
360
377
# - name: Unit tests - PoW and Leafs
361
- # run: test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
378
+ # run: build/ test/gpu-setup-test -tlp -d 18 -id 0xe26b543725490682675f6f84ea7689601adeaf14caa7024ec1140c82754ca339 --salt 0x165310acce39719148915c356f25c5cb78e82203222cccdf3c15a9c3684e08cb -si 126202
362
379
# - name: Unit tests - label lengths
363
- # run: test/gpu-setup-test -il
380
+ # run: build/ test/gpu-setup-test -il
364
381
# - name: Unit tests - labels count
365
- # run: test/gpu-setup-test -in
382
+ # run: build/ test/gpu-setup-test -in
366
383
# - name: Integration tests - concurrency test
367
- # run: test/gpu-setup-test -ip
384
+ # run: build/ test/gpu-setup-test -ip
368
385
# - name: Integration tests - cancellation test
369
- # run: test/gpu-setup-test -ic
386
+ # run: build/ test/gpu-setup-test -ic
370
387
371
388
# - name: Upload lib
372
389
# uses: actions/upload-artifact@v2
373
390
# with:
374
391
# name: linux-arm64
375
- # path: src/libgpu-setup.so
392
+ # path: build/ src/libgpu-setup.so
376
393
# - name: Upload test-app
377
394
# uses: actions/upload-artifact@v2
378
395
# with:
379
396
# name: linux-arm64
380
- # path: test/gpu-setup-test
397
+ # path: build/ test/gpu-setup-test
381
398
# - name: Upload api.h
382
399
# uses: actions/upload-artifact@v2
383
400
# with:
0 commit comments