diff --git a/.ci/azure/linux.yml b/.ci/azure/linux.yml index ec0993fce2d3ff..cc3897b3a8b167 100644 --- a/.ci/azure/linux.yml +++ b/.ci/azure/linux.yml @@ -1,6 +1,12 @@ +resources: + repositories: + - repository: openvino + type: github + endpoint: openvinotoolkit + name: openvinotoolkit/openvino + jobs: - job: Lin - # About 150% of total time timeoutInMinutes: 60 @@ -14,9 +20,10 @@ jobs: WORKERS_NUMBER: 8 BUILD_TYPE: Release REPO_DIR: $(Build.Repository.LocalPath) + OPENVINO_REPO_DIR: $(REPO_DIR)/../openvino WORK_DIR: $(Pipeline.Workspace)/_w - OPENVINO_REPO_DIR: $(WORK_DIR)/openvino BUILD_DIR: $(WORK_DIR)/build + BUILD_OPENVINO_DIR: $(WORK_DIR)/build_openvino steps: - script: | @@ -41,6 +48,7 @@ jobs: - script: | rm -rf $(WORK_DIR) ; mkdir $(WORK_DIR) rm -rf $(BUILD_DIR) ; mkdir $(BUILD_DIR) + rm -rf $(BUILD_OPENVINO_DIR) ; mkdir $(BUILD_OPENVINO_DIR) displayName: 'Make dir' - checkout: self @@ -49,3 +57,29 @@ jobs: submodules: recursive path: openvino_contrib + - checkout: openvino + clean: true + lfs: false + submodules: recursive + path: openvino + + - script: | + sudo apt --assume-yes install libusb-1.0-0-dev + displayName: 'Install dependencies' + + - script: | + wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip + unzip ninja-linux.zip + sudo cp -v ninja /usr/local/bin/ + workingDirectory: $(WORK_DIR) + displayName: 'Install Ninja' + + - task: CMake@1 + inputs: + cmakeArgs: -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) $(OPENVINO_REPO_DIR) + workingDirectory: $(BUILD_OPENVINO_DIR) + + - script: ninja + workingDirectory: $(BUILD_OPENVINO_DIR) + displayName: 'Build OpenVINO' +