From efd66c98b73d6d0e167a72ed7e91f0d4ae8bbf18 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 17 Jul 2024 18:13:47 -0400 Subject: [PATCH] Use ProxMox for builds Signed-off-by: Michael Jackson --- .azure/pipelines/azure-pipelines.yml | 45 ++++++++++++++++++---------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index f96c9ad2f0..3c383ea74c 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -14,6 +14,10 @@ resources: type: github endpoint: BlueQuartzSoftware name: BlueQuartzSoftware/simplnx + - repository: FileStore + type: github + endpoint: BlueQuartzSoftware + name: BlueQuartzSoftware/FileStore trigger: - develop @@ -22,25 +26,25 @@ jobs: - job: strategy: matrix: - macOS: - imageName: Darwin - preset_name: ci-macos-x64 - home_dir: /Users/buildbot - Windows: - imageName: Windows_NT - preset_name: ci-windows-v143 - home_dir: C:/Users/buildbot + # macOS: + # imageName: Darwin + # preset_name: ci-macos-x64 + # home_dir: /Users/buildbot + # Windows: + # imageName: Windows_NT + # preset_name: ci-windows-v143 + # home_dir: C:/Users/buildbot Linux: imageName: Linux preset_name: ci-linux-x64 home_dir: /home/buildbot - python_dir: /opt/hostedtoolcache/Python/3.10.13/x64/bin + python_dir: /opt/local/anaconda3/envs/dream3d/bin pool: name: BlueQuartz Self Hosted demands: - Agent.OS -equals $(imageName) - - BQ.SIMPLNX + - BQ.PROXMOX workspace: clean: all @@ -49,6 +53,7 @@ jobs: variables: simplnx_source_dir: $(Build.Repository.LocalPath) + filestore_source_dir: $(Build.Repository.LocalPath)/FileStore dream3d_data_dir: $(Agent.WorkFolder)/DREAM3D_Data model_type: Experimental build_type: Release @@ -58,6 +63,8 @@ jobs: steps: - checkout: self submodules: true + - checkout: FileStore + submodules: true - powershell: | try { @@ -81,13 +88,21 @@ jobs: # This also allows CDash to get the real git commit that we are on for DREAM3DNX #================================================================================================== - powershell: | - cd $(Build.Repository.LocalPath) + cd $(Build.Repository.LocalPath)/simplnx git config core.sshCommand "ssh -i $(home_dir)/.ssh/id_rsa" git remote rename origin azure git remote add origin ssh://git@github.com/$(simplnx_origin_name)/simplnx git fetch origin displayName: Update Simplnx Repo - + + - powershell: | + cd $(Build.Repository.LocalPath)/simplxn + git config core.sshCommand "ssh -i $(home_dir)/.ssh/id_rsa" + git remote rename origin azure + git remote add origin ssh://git@github.com/$(simplnx_origin_name)/FileStore + git fetch origin + displayName: Update FileStore Repo + #================================================================================================== # CDash Section: # In this section we are going to call `ctest` 3 times in order to separate out the output from @@ -99,17 +114,17 @@ jobs: $UpdatedPath = '$(python_dir)' + [IO.Path]::PathSeparator + [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Process) [System.Environment]::SetEnvironmentVariable('PATH', $UpdatedPath, [System.EnvironmentVariableTarget]::Process) cd $(Build.BinariesDirectory) - ctest -VV -DCTEST_SOURCE_DIR=$(simplnx_source_dir) -DCTEST_BINARY_DIRECTORY=$(Build.BinariesDirectory) -Ddashboard_model=Experimental -DCTEST_DASHBOARD_ROOT=$(Build.Repository.LocalPath) -DCMAKE_PRESET_NAME="$(preset_name)" -DCTEST_CONFIGURATION_TYPE=Release -S $(Build.Repository.LocalPath)/.azure/azure_ci_configure.cmake + ctest -VV -DCTEST_SOURCE_DIR=$(simplnx_source_dir) -DCTEST_BINARY_DIRECTORY=$(Build.BinariesDirectory) -Ddashboard_model=Experimental -DCTEST_DASHBOARD_ROOT=$(Build.Repository.LocalPath) -DCMAKE_PRESET_NAME="$(preset_name)" -DCTEST_CONFIGURATION_TYPE=Release -S $(Build.Repository.LocalPath)/simplnx/.azure/azure_ci_configure.cmake displayName: CDash Update/Configure - powershell: | cd $(Build.BinariesDirectory) - ctest -VV -DCTEST_SOURCE_DIR=$(simplnx_source_dir) -DCTEST_BINARY_DIRECTORY=$(Build.BinariesDirectory) -Ddashboard_model=Experimental -DCTEST_DASHBOARD_ROOT=$(Build.Repository.LocalPath) -DCMAKE_PRESET_NAME="$(preset_name)" -DCTEST_CONFIGURATION_TYPE=Release -S $(Build.Repository.LocalPath)/.azure/azure_ci_build.cmake + ctest -VV -DCTEST_SOURCE_DIR=$(simplnx_source_dir) -DCTEST_BINARY_DIRECTORY=$(Build.BinariesDirectory) -Ddashboard_model=Experimental -DCTEST_DASHBOARD_ROOT=$(Build.Repository.LocalPath) -DCMAKE_PRESET_NAME="$(preset_name)" -DCTEST_CONFIGURATION_TYPE=Release -S $(Build.Repository.LocalPath)/simplnx/.azure/azure_ci_build.cmake displayName: CDash Build - powershell: | cd $(Build.BinariesDirectory) - ctest -VV -DCTEST_SOURCE_DIR=$(simplnx_source_dir) -DCTEST_BINARY_DIRECTORY=$(Build.BinariesDirectory) -Ddashboard_model=Experimental -DCTEST_DASHBOARD_ROOT=$(Build.Repository.LocalPath) -DCMAKE_PRESET_NAME="$(preset_name)" -DCTEST_CONFIGURATION_TYPE=Release -S $(Build.Repository.LocalPath)/.azure/azure_ci_test.cmake + ctest -VV -DCTEST_SOURCE_DIR=$(simplnx_source_dir) -DCTEST_BINARY_DIRECTORY=$(Build.BinariesDirectory) -Ddashboard_model=Experimental -DCTEST_DASHBOARD_ROOT=$(Build.Repository.LocalPath) -DCMAKE_PRESET_NAME="$(preset_name)" -DCTEST_CONFIGURATION_TYPE=Release -S $(Build.Repository.LocalPath)/simplnx/.azure/azure_ci_test.cmake displayName: CDash Test #==================================================================================================