Skip to content

Commit

Permalink
build wheels artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Dec 4, 2023
1 parent 8f93dfd commit ec6da48
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
17 changes: 16 additions & 1 deletion .ci/azure/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
MODELS_PATH: $(REPO_DIR)/../testdata
WORK_DIR: $(Pipeline.Workspace)/_w
BUILD_DIR: $(WORK_DIR)/build
BUILD_WHEEL_DIR: ${BUILD_DIR}/wheels
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE)
INSTALL_DIR: $(WORK_DIR)/install_pkg
SETUPVARS: $(INSTALL_DIR)/setupvars.sh
Expand Down Expand Up @@ -172,10 +173,24 @@ jobs:
python -m pip install -r $(REPO_DIR)/modules/custom_operations/tests/requirements.txt
python -m pip install $(INSTALL_DIR)/tools/openvino-*.whl
python -m pip install $(OPENVINO_REPO_DIR)/tools/mo/
python -m pip install $(REPO_DIR)/modules/custom_operations/.[all]
workingDirectory: $(WORK_DIR)
displayName: 'Create virtual env'
- script: |
source .env3/bin/activate && source $(SETUPVARS)
python -m build --wheel --outdir $(BUILD_WHEEL_DIR)
workingDirectory: $(REPO_DIR)\modules\custom_operations
displayName: 'Build tokenizers wheel'
- script: |
source .env3/bin/activate
python -m pip install $(BUILD_WHEEL_DIR)/*.whl
workingDirectory: $(WORK_DIR)
displayName: 'Install tokenizers wheel'
- publish: $(BUILD_WHEEL_DIR)
artifact: Wheels

- script: |
source $(WORK_DIR)/.env3/bin/activate
# need to enable sparse_conv tests with new Open3D release
Expand Down
17 changes: 16 additions & 1 deletion .ci/azure/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
MODELS_PATH: $(REPO_DIR)/../testdata
WORK_DIR: $(Pipeline.Workspace)/_w
BUILD_DIR: $(WORK_DIR)/build
BUILD_WHEEL_DIR: $(BUILD_DIR)/wheels
BIN_DIR: $(OPENVINO_REPO_DIR)/bin/intel64/$(BUILD_TYPE)
INSTALL_DIR: $(WORK_DIR)/install_pkg
SETUPVARS: $(INSTALL_DIR)/setupvars.sh
Expand Down Expand Up @@ -163,10 +164,24 @@ jobs:
python -m pip install -r $(REPO_DIR)/modules/custom_operations/tests/requirements.txt
python -m pip install $(OPENVINO_REPO_DIR)/tools/mo/
python -m pip install $(INSTALL_DIR)/tools/openvino-*.whl
python -m pip install $(REPO_DIR)/modules/custom_operations/.[transformers]
workingDirectory: $(WORK_DIR)
displayName: 'Create virtual env'
- script: |
source .env3/bin/activate && source $(SETUPVARS)
python -m build --wheel --outdir $(BUILD_WHEEL_DIR)
workingDirectory: $(REPO_DIR)\modules\custom_operations
displayName: 'Build tokenizers wheel'
- script: |
source .env3/bin/activate
python -m pip install $(BUILD_WHEEL_DIR)/*.whl
workingDirectory: $(WORK_DIR)
displayName: 'Install tokenizers wheel'
- publish: $(BUILD_WHEEL_DIR)
artifact: Wheels

- script: |
source $(WORK_DIR)/venv/bin/activate
python -m pytest --tb=no tokenizers_test.py
Expand Down
18 changes: 16 additions & 2 deletions .ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
WORK_DIR: $(Pipeline.Workspace)\_w
BUILD_DIR: D:\build
BUILD_DIR_CONTRIB: D:\build_contrib
BUILD_WHEEL_DIR_CONTRIB: $(BUILD_DIR_CONTRIB)\wheels
MSVS_VARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
INSTALL_DIR: $(WORK_DIR)\install_pkg
Expand Down Expand Up @@ -99,18 +100,31 @@ jobs:
powershell -command "Expand-Archive -Force ninja-win.zip"
powershell -command "Invoke-WebRequest https://services.gradle.org/distributions/gradle-$(GRADLE_VER)-bin.zip -OutFile gradle-$(GRADLE_VER)-bin.zip"
powershell -command "Expand-Archive -Force gradle-$(GRADLE_VER)-bin.zip"
call $(SETUPVARS)
call $(SETUPVARS) -pyver 3.8
$(PYTHON_EXE) -m pip install --upgrade pip
$(PYTHON_EXE) -m pip install -r $(OPENVINO_REPO_DIR)\src\bindings\python\src\compatibility\openvino\requirements-dev.txt
$(PYTHON_EXE) -m pip install -r $(OPENVINO_REPO_DIR)\src\bindings\python\requirements.txt
$(PYTHON_EXE) -m pip install -r $(REPO_DIR)\modules\custom_operations\tests\requirements.txt
$(PYTHON_EXE) -m pip install $(OPENVINO_REPO_DIR)\tools\mo
$(PYTHON_EXE) -m pip install $(REPO_DIR)\modules\custom_operations\.[all]
powershell -command "Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
choco install opencv -y
workingDirectory: $(WORK_DIR)
displayName: 'Install dependencies'
- script: |
call $(SETUPVARS) -pyver 3.8
$(PYTHON_EXE) -m build --wheel --outdir $(BUILD_WHEEL_DIR_CONTRIB)
workingDirectory: $(REPO_DIR)\modules\custom_operations
displayName: 'Build tokenizers wheel'
- script: |
$(PYTHON_EXE) -m pip install $(BUILD_WHEEL_DIR_CONTRIB)/*.whl
workingDirectory: $(WORK_DIR)
displayName: 'Install tokenizers wheel'
- publish: $(BUILD_WHEEL_DIR_CONTRIB)
artifact: Wheels

- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
call "$(MSVS_VARS_PATH)"
Expand Down

0 comments on commit ec6da48

Please sign in to comment.