Skip to content

Commit

Permalink
Use ZIP cpack generator on Windows (openvinotoolkit#25042)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
  • Loading branch information
ilya-lavrenov authored and allnes committed Jun 26, 2024
1 parent b37b8f5 commit 45e7179
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/job_tokenizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,6 @@ jobs:
Expand-Archive openvino_package.zip -DestinationPath "${{ env.INSTALL_DIR }}"
popd
#
# Dependencies
#

- name: Install python dependencies
run: |
# wheel packaging
python3 -m pip install -r ${{ env.OPENVINO_TOKENIZERS_REPO }}/requirements-build.txt
#
# Build
#
Expand All @@ -109,19 +100,16 @@ jobs:
if: runner.os != 'Windows'
run: |
source ${INSTALL_DIR}/setupvars.sh
python -m build --wheel --outdir ${EXTENSION_BUILD_DIR} ${OPENVINO_TOKENIZERS_REPO}
python -m pip wheel -v --no-deps --wheel-dir ${EXTENSION_BUILD_DIR} ${OPENVINO_TOKENIZERS_REPO}
env:
CMAKE_ARGS: '-DBUILD_FAST_TOKENIZERS=OFF'
CMAKE_BUILD_PARALLEL_LEVEL: '4'
CMAKE_GENERATOR: 'Unix Makefiles'

- name: Build tokenizers wheel (Windows)
if: runner.os == 'Windows'
run: |
. "${{ env.INSTALL_DIR }}/setupvars.ps1"
python3 -m build --wheel --outdir ${env:EXTENSION_BUILD_DIR} ${env:OPENVINO_TOKENIZERS_REPO}
python3 -m pip wheel -v --no-deps --wheel-dir ${env:EXTENSION_BUILD_DIR} ${env:OPENVINO_TOKENIZERS_REPO}
env:
CMAKE_ARGS: '-DBUILD_FAST_TOKENIZERS=OFF'
CMAKE_BUILD_PARALLEL_LEVEL: '4'

#
Expand Down
6 changes: 5 additions & 1 deletion cmake/developer_package/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
include(options)
include(target_flags)

set (CPACK_GENERATOR "TGZ" CACHE STRING "Cpack generator for OpenVINO")
if(WIN32)
set (CPACK_GENERATOR "ZIP" CACHE STRING "Cpack generator for OpenVINO")
else()
set (CPACK_GENERATOR "TGZ" CACHE STRING "Cpack generator for OpenVINO")
endif()

ov_dependent_option (ENABLE_LTO "Enable Link Time Optimization" OFF "LINUX;NOT ARM;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9" OFF)

Expand Down

0 comments on commit 45e7179

Please sign in to comment.