Skip to content

Commit

Permalink
fixed tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Feb 5, 2024
1 parent 0c9976a commit c83aeda
Showing 1 changed file with 78 additions and 78 deletions.
156 changes: 78 additions & 78 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,81 +161,81 @@ jobs:
volumes:
- /mount:/mount

env:
INSTALL_DIR: /__w/openvino/openvino/install
OPENVINO_REPO: /__w/openvino/openvino/openvino
OPENVINO_TOKENIZERS_REPO: /__w/openvino/openvino/openvino_tokenizers
BUILD_DIR: /__w/openvino/openvino/openvino_tokenizers

steps:
- name: checkout action
uses: actions/checkout@v4
with:
repository: 'openvinotoolkit/openvino'
sparse-checkout: |
.github/actions/setup_python
install_build_dependencies.sh
- name: Setup Python ${{ env.PYTHON_VERSION }}
uses: ./.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
should-setup-pip-paths: 'true'
self-hosted-runner: 'true'
show-cache-info: 'false'

- name: Clone Openvino tokenizers
uses: actions/checkout@v4
with:
path: ${{ env.OPENVINO_TOKENIZERS_REPO }}
submodules: 'true'

- name: Download OpenVINO package
uses: actions/download-artifact@v3
with:
name: openvino_package
path: ${{ env.INSTALL_DIR }}

- name: Extract OpenVINO packages
run: |
pushd ${INSTALL_DIR}
tar -xzf openvino_package.tar.gz -C ${INSTALL_DIR}
popd
#
# Dependencies
#

- name: Install build dependencies
run: ./install_build_dependencies.sh

- name: Install python dependencies
run: |
# wheel packaging
python3 -m pip install -r ${OPENVINO_TOKENIZERS_REPO}/requirements-build.txt
#
# Build
#

- name: Build tokenizers wheel
run: |
source ${INSTALL_DIR}/setupvars.sh
python -m build --wheel --outdir ${EXTENSION_BUILD_DIR} ${OPENVINO_TOKENIZERS_REPO}
env:
CMAKE_ARGS: '-DBUILD_FAST_TOKENIZERS=OFF'
CMAKE_BUILD_PARALLEL_LEVEL: '4'
CMAKE_GENERATOR: 'Unix Makefiles'

#
# Upload build artifacts
#

- name: Upload openvino tokenizers wheel
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: openvino_tokenizers_wheel
path: ${{ env.EXTENSION_BUILD_DIR }}/*.whl
if-no-files-found: 'error'
env:
INSTALL_DIR: /__w/openvino/openvino/install
OPENVINO_REPO: /__w/openvino/openvino/openvino
OPENVINO_TOKENIZERS_REPO: /__w/openvino/openvino/openvino_tokenizers
BUILD_DIR: /__w/openvino/openvino/openvino_tokenizers

steps:
- name: checkout action
uses: actions/checkout@v4
with:
repository: 'openvinotoolkit/openvino'
sparse-checkout: |
.github/actions/setup_python
install_build_dependencies.sh
- name: Setup Python ${{ env.PYTHON_VERSION }}
uses: ./.github/actions/setup_python
with:
version: ${{ env.PYTHON_VERSION }}
pip-cache-path: ${{ env.PIP_CACHE_PATH }}
should-setup-pip-paths: 'true'
self-hosted-runner: 'true'
show-cache-info: 'false'

- name: Clone Openvino tokenizers
uses: actions/checkout@v4
with:
path: ${{ env.OPENVINO_TOKENIZERS_REPO }}
submodules: 'true'

- name: Download OpenVINO package
uses: actions/download-artifact@v3
with:
name: openvino_package
path: ${{ env.INSTALL_DIR }}

- name: Extract OpenVINO packages
run: |
pushd ${INSTALL_DIR}
tar -xzf openvino_package.tar.gz -C ${INSTALL_DIR}
popd
#
# Dependencies
#

- name: Install build dependencies
run: ./install_build_dependencies.sh

- name: Install python dependencies
run: |
# wheel packaging
python3 -m pip install -r ${OPENVINO_TOKENIZERS_REPO}/requirements-build.txt
#
# Build
#

- name: Build tokenizers wheel
run: |
source ${INSTALL_DIR}/setupvars.sh
python -m build --wheel --outdir ${EXTENSION_BUILD_DIR} ${OPENVINO_TOKENIZERS_REPO}
env:
CMAKE_ARGS: '-DBUILD_FAST_TOKENIZERS=OFF'
CMAKE_BUILD_PARALLEL_LEVEL: '4'
CMAKE_GENERATOR: 'Unix Makefiles'

#
# Upload build artifacts
#

- name: Upload openvino tokenizers wheel
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: openvino_tokenizers_wheel
path: ${{ env.EXTENSION_BUILD_DIR }}/*.whl
if-no-files-found: 'error'

0 comments on commit c83aeda

Please sign in to comment.