@@ -233,7 +233,7 @@ jobs:
233
233
displayName : Publish build packages
234
234
artifact : BuildTorchSharpPackages
235
235
236
- - publish : SignClient.json
236
+ - publish : $(Build.SourcesDirectory)/config
237
237
displayName : Publish signing config
238
238
artifact : config
239
239
@@ -360,13 +360,11 @@ jobs:
360
360
artifact : BuildLinuxCUDAPackages
361
361
362
362
# ###############################################################################
363
- - job : CodeSign
363
+ - job : CodeSign_Core
364
364
# ###############################################################################
365
365
condition : and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], 'main'))
366
366
dependsOn :
367
367
- Build_TorchSharp_And_libtorch_cpu_Packages
368
- - Build_libtorch_cuda_win_Packages
369
- - Build_libtorch_cuda_linux_Packages
370
368
variables :
371
369
- group : SignClient Credentials
372
370
pool :
@@ -393,6 +391,7 @@ jobs:
393
391
--baseDirectory '$(Pipeline.Workspace)\BuildTorchSharpPackages' `
394
392
--input '**/*.nupkg' `
395
393
--config '$(Pipeline.Workspace)\config\SignClient.json' `
394
+ --filelist '$(Pipeline.Workspace)\config\signedfiles.txt' `
396
395
--user '$(SignClientUser)' `
397
396
--secret '$(SignClientSecret)' `
398
397
--name 'TorchSharp' `
@@ -406,64 +405,89 @@ jobs:
406
405
continueOnError : true
407
406
408
407
- script : rmdir /s /q $(Pipeline.Workspace)\BuildTorchSharpPackages
409
- # displayName: Free up space (TorchSharp packages in workspace)
410
-
411
- # - download: current
412
- # displayName: Download Windows CUDA Packages
413
- # artifact: BuildWinCUDAPackages
414
-
415
- # - pwsh: |
416
- # .\SignClient 'Sign' `
417
- # --baseDirectory '$(Pipeline.Workspace)\BuildWinCUDAPackages' `
418
- # --input '**/*.nupkg' `
419
- # --config '$(Pipeline.Workspace)\config\SignClient.json' `
420
- # --user '$(SignClientUser)' `
421
- # --secret '$(SignClientSecret)' `
422
- # --name 'TorchSharp' `
423
- # --description 'TorchSharp' `
424
- # --descriptionUrl 'https://github.com/dotnet/TorchSharp'
425
- # displayName: Sign packages
408
+ displayName : Free up space (TorchSharp packages in workspace)
409
+
410
+ # ###############################################################################
411
+ - job : CodeSign_Extras
412
+ # ###############################################################################
413
+ condition : and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], 'main'), eq(variables['BuildLibTorchPackages'], 'true'))
414
+ dependsOn :
415
+ - Build_libtorch_cuda_win_Packages
416
+ - Build_libtorch_cuda_linux_Packages
417
+ variables :
418
+ - group : SignClient Credentials
419
+ pool :
420
+ vmImage : ' windows-2019'
421
+ steps :
422
+
423
+ - task : DotNetCoreCLI@2
424
+ inputs :
425
+ command : custom
426
+ custom : tool
427
+ arguments : install --tool-path . SignClient
428
+ displayName : Install SignTool tool
429
+
430
+ - download : current
431
+ displayName : Download configuration
432
+ artifact : config
433
+
434
+ - download : current
435
+ displayName : Download Windows CUDA Packages
436
+ artifact : BuildWinCUDAPackages
437
+
438
+ - pwsh : |
439
+ .\SignClient 'Sign' `
440
+ --baseDirectory '$(Pipeline.Workspace)\BuildWinCUDAPackages' `
441
+ --input '**/*.nupkg' `
442
+ --config '$(Pipeline.Workspace)\config\SignClient.json' `
443
+ --filelist '$(Pipeline.Workspace)\config\signedfiles.txt' `
444
+ --user '$(SignClientUser)' `
445
+ --secret '$(SignClientSecret)' `
446
+ --name 'TorchSharp' `
447
+ --description 'TorchSharp' `
448
+ --descriptionUrl 'https://github.com/dotnet/TorchSharp'
449
+ displayName: Sign packages
426
450
427
- # - publish: $(Pipeline.Workspace)/BuildWinCUDAPackages
428
- # displayName: Publish Signed Windows CUDA Packages
429
- # artifact: SignedWinCUDAPackages
430
- # continueOnError: true
451
+ - publish : $(Pipeline.Workspace)/BuildWinCUDAPackages
452
+ displayName : Publish Signed Windows CUDA Packages
453
+ artifact : SignedWinCUDAPackages
454
+ continueOnError : true
431
455
432
- # - script: rmdir /s /q $(Pipeline.Workspace)\BuildWinCUDAPackages
433
- # displayName: Free up space (TorchSharp packages in workspace)
434
-
435
- # - download: current
436
- # displayName: Download Linux CUDA Packages
437
- # artifact: BuildLinuxCUDAPackages
438
-
439
- # - pwsh: |
440
- # .\SignClient 'Sign' `
441
- # --baseDirectory '$(Pipeline.Workspace)\BuildLinuxCUDAPackages' `
442
- # --input '**/*.nupkg' `
443
- # --config '$(Pipeline.Workspace)\config\SignClient.json' `
444
- # --user '$(SignClientUser)' `
445
- # --secret '$(SignClientSecret)' `
446
- # --name 'TorchSharp' `
447
- # --description 'TorchSharp' `
448
- # --descriptionUrl 'https://github.com/dotnet/TorchSharp'
449
- # displayName: Sign packages
450
-
451
- # - publish: $(Pipeline.Workspace)/BuildLinuxCUDAPackages
452
- # displayName: Publish Signed Linux CUDA Packages
453
- # artifact: SignedLinuxCUDAPackages
454
- # continueOnError: true
456
+ - script : rmdir /s /q $(Pipeline.Workspace)\BuildWinCUDAPackages
457
+ displayName : Free up space (TorchSharp packages in workspace)
458
+
459
+ - download : current
460
+ displayName : Download Linux CUDA Packages
461
+ artifact : BuildLinuxCUDAPackages
455
462
456
- # - script: rmdir /s /q $(Pipeline.Workspace)\BuildLinuxCUDAPackages
457
- # displayName: Free up space (TorchSharp packages in workspace)
463
+ - pwsh : |
464
+ .\SignClient 'Sign' `
465
+ --baseDirectory '$(Pipeline.Workspace)\BuildLinuxCUDAPackages' `
466
+ --input '**/*.nupkg' `
467
+ --config '$(Pipeline.Workspace)\config\SignClient.json' `
468
+ --filelist '$(Pipeline.Workspace)\config\signedfiles.txt' `
469
+ --user '$(SignClientUser)' `
470
+ --secret '$(SignClientSecret)' `
471
+ --name 'TorchSharp' `
472
+ --description 'TorchSharp' `
473
+ --descriptionUrl 'https://github.com/dotnet/TorchSharp'
474
+ displayName: Sign packages
475
+
476
+ - publish : $(Pipeline.Workspace)/BuildLinuxCUDAPackages
477
+ displayName : Publish Signed Linux CUDA Packages
478
+ artifact : SignedLinuxCUDAPackages
479
+ continueOnError : true
458
480
481
+ - script : rmdir /s /q $(Pipeline.Workspace)\BuildLinuxCUDAPackages
482
+ displayName : Free up space (TorchSharp packages in workspace)
459
483
460
484
# ###############################################################################
461
485
- job : Push_TorchSharp_And_libtorch_cpu_Packages
462
486
# ###############################################################################
463
487
condition : and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], 'main'))
464
488
dependsOn :
465
489
- Build_TorchSharp_And_libtorch_cpu_Packages
466
- - CodeSign
490
+ - CodeSign_Core
467
491
variables :
468
492
BuildConfig : Release
469
493
OfficialBuildId : $(BUILD.BUILDNUMBER)
@@ -537,7 +561,7 @@ jobs:
537
561
condition : and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], 'main'), eq(variables['BuildLibTorchPackages'], 'true'))
538
562
dependsOn :
539
563
- Build_libtorch_cuda_win_Packages
540
- - CodeSign
564
+ - CodeSign_Extras
541
565
variables :
542
566
BuildConfig : Release
543
567
OfficialBuildId : $(BUILD.BUILDNUMBER)
@@ -557,12 +581,8 @@ jobs:
557
581
displayName : ' NuGet Authenticate'
558
582
559
583
- download : current
560
- displayName : Download Windows CUDA Packages
561
- artifact : BuildWinCUDAPackages
562
-
563
- # - download: current
564
- # displayName: Download Signed Windows CUDA Packages
565
- # artifact: SignedWinCUDAPackages
584
+ displayName : Download Signed Windows CUDA Packages
585
+ artifact : SignedWinCUDAPackages
566
586
567
587
# push the Windows Cuda packages as they are useful even if pushing the huge and messy Linux cuda packages fails
568
588
- task : NuGetCommand@2
@@ -626,7 +646,7 @@ jobs:
626
646
condition : and(ne(variables['system.pullrequest.isfork'], true), eq(variables['build.sourcebranchname'], 'main'), eq(variables['BuildLibTorchPackages'], 'true'))
627
647
dependsOn :
628
648
- Build_libtorch_cuda_linux_Packages
629
- - CodeSign
649
+ - CodeSign_Extras
630
650
variables :
631
651
BuildConfig : Release
632
652
OfficialBuildId : $(BUILD.BUILDNUMBER)
@@ -648,12 +668,8 @@ jobs:
648
668
displayName : ' NuGet Authenticate'
649
669
650
670
- download : current
651
- displayName : Download Linux CUDA Packages
652
- artifact : BuildLinuxCUDAPackages
653
-
654
- # - download: current
655
- # displayName: Download Signed Linux CUDA Packages
656
- # artifact: SignedLinuxCUDAPackages
671
+ displayName : Download Signed Linux CUDA Packages
672
+ artifact : SignedLinuxCUDAPackages
657
673
658
674
# push the Linux Cuda packages
659
675
- task : NuGetCommand@2
0 commit comments