Skip to content

Commit

Permalink
[GHA] macOS install pigz (#28647)
Browse files Browse the repository at this point in the history
### Details:
- fixed regression caused by
#28521
### Tickets:
 - *ticket-id*
  • Loading branch information
mryzhov authored Jan 24, 2025
1 parent c421837 commit 41ba3e0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/job_openvino_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
sparse-checkout: |
src/bindings/js
path: 'openvino'

- name: Install OpenVINO dependencies (mac)
if: runner.os == 'macOS'
run: brew install pigz

# Needed as ${{ github.workspace }} is not working correctly when using Docker
- name: Setup Variables
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,14 @@ jobs:
-DCPACK_GENERATOR=NPM \
-S ${{ env.OPENVINO_REPO }} \
-B ${{ env.BUILD_DIR }}
cmake --build ${{ env.BUILD_DIR }} --parallel $(nproc)
cmake -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR_JS }} -P ${{ env.BUILD_DIR }}/cmake_install.cmake
- name: Pack openvino_js_package
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
run: tar -cvf - * | pigz > ${BUILD_DIR}/openvino_js_package.tar.gz
working-directory: ${{ env.INSTALL_DIR_JS }}

#
# Upload build artifacts
#
Expand All @@ -272,13 +275,12 @@ jobs:
name: openvino_tests
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
if-no-files-found: 'error'

- name: Upload openvino js package
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: openvino_js_package
path: ${{ env.INSTALL_DIR_JS }}
path: ${{ env.BUILD_DIR }}/openvino_js_package.tar.gz
if-no-files-found: 'error'

Samples:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/mac_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,14 @@ jobs:
-DCPACK_GENERATOR=NPM \
-S ${{ env.OPENVINO_REPO }} \
-B ${{ env.BUILD_DIR }}
cmake --build ${{ env.BUILD_DIR }} --parallel $(nproc)
cmake -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR_JS }} -P ${{ env.BUILD_DIR }}/cmake_install.cmake
- name: Pack openvino_js_package
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
run: tar -cvf - * | pigz > ${BUILD_DIR}/openvino_js_package.tar.gz
working-directory: ${{ env.INSTALL_DIR_JS }}

#
# Upload build artifacts
#
Expand Down Expand Up @@ -277,7 +281,7 @@ jobs:
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: openvino_js_package
path: ${{ env.INSTALL_DIR_JS }}
path: ${{ env.BUILD_DIR }}/openvino_js_package.tar.gz
if-no-files-found: 'error'

Samples:
Expand Down

0 comments on commit 41ba3e0

Please sign in to comment.