Skip to content

Commit

Permalink
Enable OpenVINO build (#1)
Browse files Browse the repository at this point in the history
* Enable OpenVINO build
* Add resources
  • Loading branch information
Alexander Zhogov authored Nov 3, 2020
1 parent 4ae32e0 commit 5189cf8
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .ci/azure/linux.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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'

0 comments on commit 5189cf8

Please sign in to comment.