@@ -369,28 +369,47 @@ jobs:
369
369
370
370
- job : LinuxK4ABuildTest
371
371
displayName : Linux
372
- pool :
373
- vmImage : ' ubuntu-16.04'
374
- container : mcr.microsoft.com/akbuilder-linux:v3
375
372
strategy :
376
373
maxParallel : 100
377
374
matrix :
378
375
x64-clang_debug_ninja :
379
376
CMakeLinuxTargetTriple : ' x86_64-linux-clang'
380
377
CMakeConfiguration : ' debug'
381
378
UsesOpenCV : ' TRUE'
379
+ container : ' mcr.microsoft.com/akbuilder-linux:v5-amd64'
382
380
x64-gnu_debug_ninja :
383
381
CMakeLinuxTargetTriple : ' x86_64-linux-gnu'
384
382
CMakeConfiguration : ' debug'
385
383
UsesOpenCV : ' TRUE'
384
+ container : ' mcr.microsoft.com/akbuilder-linux:v5-amd64'
386
385
x64-clang_rel_ninja :
387
386
CMakeLinuxTargetTriple : ' x86_64-linux-clang'
388
387
CMakeConfiguration : ' relwithdebinfo'
389
388
UsesOpenCV : ' TRUE'
389
+ container : ' mcr.microsoft.com/akbuilder-linux:v5-amd64'
390
390
x64-gnu_rel_ninja :
391
391
CMakeLinuxTargetTriple : ' x86_64-linux-gnu'
392
392
CMakeConfiguration : ' relwithdebinfo'
393
393
UsesOpenCV : ' TRUE'
394
+ container : ' mcr.microsoft.com/akbuilder-linux:v5-amd64'
395
+ # arm64-clang_debug_ninja:
396
+ # CMakeLinuxTargetTriple: 'arm64-linux-clang'
397
+ # CMakeConfiguration: 'debug'
398
+ # UsesOpenCV: 'FALSE'
399
+ arm64-gnu_debug_ninja :
400
+ CMakeLinuxTargetTriple : ' arm64-linux-gnu'
401
+ CMakeConfiguration : ' debug'
402
+ UsesOpenCV : ' FALSE'
403
+ container : ' mcr.microsoft.com/akbuilder-linux:v5-arm64'
404
+ # arm64-clang_rel_ninja:
405
+ # CMakeLinuxTargetTriple: 'arm64-linux-clang'
406
+ # CMakeConfiguration: 'relwithdebinfo'
407
+ # UsesOpenCV: 'FALSE'
408
+ arm64-gnu_rel_ninja :
409
+ CMakeLinuxTargetTriple : ' arm64-linux-gnu'
410
+ CMakeConfiguration : ' relwithdebinfo'
411
+ UsesOpenCV : ' FALSE'
412
+ container : ' mcr.microsoft.com/akbuilder-linux:v5-arm64'
394
413
395
414
# 32-bit builds are currently broken
396
415
# i386-unknown-linux-clang_debug_ninja:
@@ -405,6 +424,9 @@ jobs:
405
424
# i386-unknown-linux-gnu_relwithdebinfo_ninja:
406
425
# CMakeLinuxTargetTriple: 'i386-linux-gnu'
407
426
# CMakeConfiguration: 'relwithdebinfo'
427
+ pool :
428
+ vmImage : ' ubuntu-18.04'
429
+ container : $[ variables['container'] ]
408
430
409
431
steps :
410
432
- checkout : self
@@ -470,7 +492,7 @@ jobs:
470
492
ArtifactName : ' $(CMakeLinuxTargetTriple)-$(CMakeConfiguration)'
471
493
parallel : true
472
494
parallelCount : 8
473
- condition : and(succeeded(), contains(variables['CMakeLinuxTargetTriple'], 'clang '))
495
+ condition : and(succeeded(), contains(variables['CMakeLinuxTargetTriple'], 'gnu '))
474
496
475
497
- job : DocumentationBuild
476
498
displayName : Documentation Build
@@ -657,41 +679,41 @@ jobs:
657
679
inputs :
658
680
sourceFolder : " $(System.ArtifactsDirectory)/depthengineplugin/windows/amd64/release/"
659
681
contents : " depthengine*.dll"
660
- targetFolder : " $(System.ArtifactsDirectory)/amd64-windows-msvc-RelWithDebInfo /bin"
682
+ targetFolder : " $(System.ArtifactsDirectory)/amd64-windows-msvc-relwithdebinfo /bin"
661
683
flattenFolders : true
662
684
663
685
- task : CopyFiles@2
664
686
displayName : " Copy DepthEngine into C# functional tests folder"
665
687
inputs :
666
688
sourceFolder : " $(System.ArtifactsDirectory)/depthengineplugin/windows/amd64/release/"
667
689
contents : " depthengine*.dll"
668
- targetFolder : " $(System.ArtifactsDirectory)/amd64-windows-msvc-RelWithDebInfo /bin/Release/Microsoft.AzureKinect.FunctionalTests/netcoreapp2.1/"
690
+ targetFolder : " $(System.ArtifactsDirectory)/amd64-windows-msvc-relwithdebinfo /bin/Release/Microsoft.AzureKinect.FunctionalTests/netcoreapp2.1/"
669
691
flattenFolders : true
670
692
671
- - script : ' .\amd64-windows-msvc-RelWithDebInfo \bin\AzureKinectFirmwareTool.exe -r'
693
+ - script : ' .\amd64-windows-msvc-relwithdebinfo \bin\AzureKinectFirmwareTool.exe -r'
672
694
workingDirectory : ' $(System.ArtifactsDirectory)'
673
695
displayName : ' Reset K4A Device'
674
696
675
- - script : ' .\amd64-windows-msvc-RelWithDebInfo \bin\AzureKinectFirmwareTool.exe -u firmware/AzureKinectDK_Fw_$(firmware_version).bin'
697
+ - script : ' .\amd64-windows-msvc-relwithdebinfo \bin\AzureKinectFirmwareTool.exe -u firmware/AzureKinectDK_Fw_$(firmware_version).bin'
676
698
workingDirectory : ' $(System.ArtifactsDirectory)'
677
699
displayName : ' Update Device'
678
700
679
- - script : ' .\amd64-windows-msvc-RelWithDebInfo \bin\enumerate_devices.exe'
701
+ - script : ' .\amd64-windows-msvc-relwithdebinfo \bin\enumerate_devices.exe'
680
702
workingDirectory : ' $(System.ArtifactsDirectory)'
681
703
displayName : ' Check Device Health'
682
704
683
705
- script : ' python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_test_list.txt --bin bin/ --output=xml --gtest_filter=-*ONBOARDING*'
684
- workingDirectory : ' $(System.ArtifactsDirectory)/amd64-windows-msvc-RelWithDebInfo '
706
+ workingDirectory : ' $(System.ArtifactsDirectory)/amd64-windows-msvc-relwithdebinfo '
685
707
displayName : ' Run Functional Tests'
686
708
timeoutInMinutes : 15
687
709
688
710
- script : ' python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_custom_test_list.txt --bin bin/ --output=xml --gtest_filter=-*ONBOARDING*'
689
- workingDirectory : ' $(System.ArtifactsDirectory)/amd64-windows-msvc-RelWithDebInfo '
711
+ workingDirectory : ' $(System.ArtifactsDirectory)/amd64-windows-msvc-relwithdebinfo '
690
712
displayName : ' Run Custom Functional Tests'
691
713
timeoutInMinutes : 15
692
714
693
715
- script : ' python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_test_list.txt --bin bin/ --output=xml --gtest_filter=*ONBOARDING*'
694
- workingDirectory : ' $(System.ArtifactsDirectory)/amd64-windows-msvc-RelWithDebInfo '
716
+ workingDirectory : ' $(System.ArtifactsDirectory)/amd64-windows-msvc-relwithdebinfo '
695
717
displayName : ' Run Functional Tests - Onboarding'
696
718
timeoutInMinutes : 15
697
719
continueOnError : true
@@ -714,10 +736,19 @@ jobs:
714
736
dependsOn : LinuxK4ABuildTest
715
737
variables :
716
738
firmware_version : " $(linux_firmware_version)"
739
+ strategy :
740
+ maxParallel : 100
741
+ matrix :
742
+ x86_64 :
743
+ CMakeLinuxTargetTriple : ' x86_64-linux-gnu'
744
+ EdenArch : ' x64'
745
+ arm64 :
746
+ CMakeLinuxTargetTriple : ' arm64-linux-gnu'
747
+ EdenArch : ' arm64'
717
748
pool :
718
749
name : Analog-FwConnected
719
750
demands :
720
- - Eden
751
+ - EdenArch -equals $(EdenArch)
721
752
- Agent.OS -equals Linux
722
753
723
754
steps :
@@ -730,7 +761,7 @@ jobs:
730
761
- task : DownloadBuildArtifacts@0
731
762
displayName : ' Download Build Artifacts'
732
763
inputs :
733
- artifactName : ' x86_64-linux-clang-RelWithDebInfo '
764
+ artifactName : ' $(CMakeLinuxTargetTriple)-relwithdebinfo '
734
765
parallelizationLimit : 8
735
766
736
767
- task : NuGetToolInstaller@0
@@ -755,19 +786,19 @@ jobs:
755
786
displayName : " Temp List files"
756
787
757
788
- task : CopyFiles@2
758
- displayName : " Copy DepthEngine into amd64 /debug artifacts folder"
789
+ displayName : " Copy DepthEngine into $(EdenArch) /debug artifacts folder"
759
790
inputs :
760
- sourceFolder : " $(System.ArtifactsDirectory)/NugetOutputDir/Microsoft.Azure.Kinect.Sensor.$(NuGetPackageVersion)/linux/lib/native/x64 /release/"
791
+ sourceFolder : " $(System.ArtifactsDirectory)/NugetOutputDir/Microsoft.Azure.Kinect.Sensor.$(NuGetPackageVersion)/linux/lib/native/$(EdenArch) /release/"
761
792
contents : " libdepthengine*"
762
- targetFolder : " $(System.ArtifactsDirectory)/depthengineplugin/linux/x86_64 /debug"
793
+ targetFolder : " $(System.ArtifactsDirectory)/depthengineplugin/linux/$(EdenArch) /debug"
763
794
flattenFolders : true
764
795
765
796
- task : CopyFiles@2
766
- displayName : " Copy DepthEngine into amd64 /release artifacts folder"
797
+ displayName : " Copy DepthEngine into $(EdenArch) /release artifacts folder"
767
798
inputs :
768
- sourceFolder : " $(System.ArtifactsDirectory)/NugetOutputDir/Microsoft.Azure.Kinect.Sensor.$(NuGetPackageVersion)/linux/lib/native/x64 /release/"
799
+ sourceFolder : " $(System.ArtifactsDirectory)/NugetOutputDir/Microsoft.Azure.Kinect.Sensor.$(NuGetPackageVersion)/linux/lib/native/$(EdenArch) /release/"
769
800
contents : " libdepthengine*"
770
- targetFolder : " $(System.ArtifactsDirectory)/depthengineplugin/linux/x86_64 /release"
801
+ targetFolder : " $(System.ArtifactsDirectory)/depthengineplugin/linux/$(EdenArch) /release"
771
802
flattenFolders : true
772
803
773
804
- task : CopyFiles@2
@@ -788,17 +819,22 @@ jobs:
788
819
- task : CopyFiles@2
789
820
displayName : " Copy DepthEnginePlugin into Build Artifacts"
790
821
inputs :
791
- sourceFolder : " $(System.ArtifactsDirectory)/depthengineplugin/linux/x86_64 /release/"
822
+ sourceFolder : " $(System.ArtifactsDirectory)/depthengineplugin/linux/$(EdenArch) /release/"
792
823
contents : " libdepthengine.so*"
793
- targetFolder : " $(System.ArtifactsDirectory)/x86_64-linux-clang -relwithdebinfo/bin/"
824
+ targetFolder : " $(System.ArtifactsDirectory)/$(CMakeLinuxTargetTriple) -relwithdebinfo/bin/"
794
825
flattenFolders : true
795
826
796
- - script : ' chmod +x ./x86_64-linux-clang -relwithdebinfo/bin/*'
827
+ - script : ' chmod +x ./$(CMakeLinuxTargetTriple) -relwithdebinfo/bin/*'
797
828
workingDirectory : ' $(System.ArtifactsDirectory)'
798
829
displayName : ' Add execution property to binary files'
799
830
800
831
# Set the DISPLAY variable since DepthEngine needs to open a display window (even there is no visual display).
801
- - script : ' echo "##vso[task.setvariable variable=DISPLAY]:0"'
832
+ - script : |
833
+ if [ $(EdenArch) == "arm64" ]; then
834
+ echo "##vso[task.setvariable variable=DISPLAY]:1"
835
+ else
836
+ echo "##vso[task.setvariable variable=DISPLAY]:0"
837
+ fi
802
838
workingDirectory: '$(System.ArtifactsDirectory)'
803
839
displayName: 'set DISPLAY variable'
804
840
@@ -807,34 +843,38 @@ jobs:
807
843
displayName : ' Check openGL version'
808
844
timeoutInMinutes : 5
809
845
810
- - script : ' ./x86_64-linux-clang -relwithdebinfo/bin/AzureKinectFirmwareTool -r'
846
+ - script : ' ./$(CMakeLinuxTargetTriple) -relwithdebinfo/bin/AzureKinectFirmwareTool -r'
811
847
workingDirectory : ' $(System.ArtifactsDirectory)'
812
848
displayName : ' Reset K4A Device'
813
849
env :
814
850
K4A_LOG_LEVEL : ' I'
815
851
816
- - script : ' ./x86_64-linux-clang -relwithdebinfo/bin/AzureKinectFirmwareTool -u firmware/AzureKinectDK_Fw_$(firmware_version).bin'
852
+ - script : ' ./$(CMakeLinuxTargetTriple) -relwithdebinfo/bin/AzureKinectFirmwareTool -u firmware/AzureKinectDK_Fw_$(firmware_version).bin'
817
853
workingDirectory : ' $(System.ArtifactsDirectory)'
818
854
displayName : ' Update Device'
819
855
env :
820
856
K4A_LOG_LEVEL : ' I'
821
857
822
- - script : ' ./x86_64-linux-clang -relwithdebinfo/bin/enumerate_devices'
858
+ - script : ' ./$(CMakeLinuxTargetTriple) -relwithdebinfo/bin/enumerate_devices'
823
859
workingDirectory : ' $(System.ArtifactsDirectory)'
824
860
displayName : ' Check Device Health'
825
861
826
862
- script : ' python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_test_list.txt --bin bin/ --output=xml --gtest_filter=-*ONBOARDING*'
827
- workingDirectory : ' $(System.ArtifactsDirectory)/x86_64-linux-clang -relwithdebinfo'
863
+ workingDirectory : ' $(System.ArtifactsDirectory)/$(CMakeLinuxTargetTriple) -relwithdebinfo'
828
864
displayName : ' Run Functional Tests'
829
865
timeoutInMinutes : 15
830
866
831
- - script : ' python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_custom_test_list.txt --bin bin/ --output=xml --gtest_filter=-*ONBOARDING*'
832
- workingDirectory : ' $(System.ArtifactsDirectory)/x86_64-linux-clang-relwithdebinfo'
867
+ - script : |
868
+ # skip testing on ARM64 Jetson Nano doesn't like 2 USB devices running at once.
869
+ if [ $(EdenArch) == "x64" ]; then
870
+ python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_custom_test_list.txt --bin bin/ --output=xml --gtest_filter=-*ONBOARDING*
871
+ fi
872
+ workingDirectory: '$(System.ArtifactsDirectory)/$(CMakeLinuxTargetTriple)-relwithdebinfo'
833
873
displayName: 'Run Custom Functional Tests'
834
874
timeoutInMinutes: 15
835
875
836
876
- script : ' python $(Build.SourcesDirectory)/scripts/RunTestList.py --list bin/functional_test_list.txt --bin bin/ --output=xml --gtest_filter=*ONBOARDING*'
837
- workingDirectory : ' $(System.ArtifactsDirectory)/x86_64-linux-clang -relwithdebinfo'
877
+ workingDirectory : ' $(System.ArtifactsDirectory)/$(CMakeLinuxTargetTriple) -relwithdebinfo'
838
878
displayName : ' Run Functional Tests - Onboarding'
839
879
timeoutInMinutes : 15
840
880
continueOnError : true
0 commit comments