Skip to content

Commit f60774d

Browse files
committed
Update win and mac workflows
1 parent 53a73e6 commit f60774d

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/mac.yml

+27
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,13 @@ jobs:
459459
pattern: "{${{ needs.openvino_download.outputs.ov_artifact_name }},genai_cpack_${{ matrix.build-type }},genai_samples_${{ matrix.build-type }},genai_wheels}"
460460
path: ${{ env.INSTALL_DIR }}
461461
merge-multiple: true
462+
463+
- name: Download GenAI JS Bildings Artifacts
464+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
465+
with:
466+
name: genai_nodejs_bindings
467+
path: ${{ env.SRC_DIR }}/src/js/bin
468+
merge-multiple: true
462469

463470
- name: Setup Python ${{ env.PYTHON_VERSION }}
464471
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
@@ -481,12 +488,32 @@ jobs:
481488
- name: Fix C++ samples permissions
482489
run: chmod +x ${{ env.INSTALL_DIR }}/samples_bin/*
483490

491+
- name: Setup NodeJS
492+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
493+
with:
494+
node-version: 21
495+
496+
- name: Install GenAI NPM package
497+
working-directory: ${{ env.SRC_DIR }}/src/js
498+
run: |
499+
npm install --verbose
500+
rm -rf node_modules/openvino-node/bin
501+
cp -R ${{ env.INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
502+
503+
- name: Install NPM dependencies for samples
504+
working-directory: ${{ env.SRC_DIR }}/samples/js/text_generation
505+
run: |
506+
npm install --verbose
507+
rm -rf node_modules/openvino-node/bin
508+
cp -R ${{ env.INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
509+
484510
- name: Test Samples (Python and C++)
485511
run: |
486512
source ${{ env.INSTALL_DIR }}/setupvars.sh
487513
python -m pytest -vs ${{ env.SRC_DIR }}/${{ matrix.test.cmd }} -m "${{ matrix.test.marker }}"
488514
env:
489515
SAMPLES_PY_DIR: "${{ env.INSTALL_DIR }}/samples/python"
516+
SAMPLES_JS_DIR: "${{ env.SRC_DIR }}/samples/js"
490517
SAMPLES_CPP_DIR: "${{ env.INSTALL_DIR }}/samples_bin"
491518
SAMPLES_C_DIR: "${{ env.INSTALL_DIR }}/samples_bin"
492519

.github/workflows/windows.yml

+28-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,14 @@ jobs:
499499
pattern: "{${{ needs.openvino_download.outputs.ov_artifact_name }},genai_cpack_${{ matrix.build-type }},genai_samples_${{ matrix.build-type }},genai_wheels}"
500500
path: ${{ env.INSTALL_DIR }}
501501
merge-multiple: true
502-
502+
503+
- name: Download GenAI JS Bildings Artifacts
504+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
505+
with:
506+
name: genai_nodejs_bindings
507+
path: ${{ env.SRC_DIR }}/src/js/bin
508+
merge-multiple: true
509+
503510
- name: Setup Python ${{ env.PYTHON_VERSION }}
504511
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
505512
with:
@@ -517,11 +524,31 @@ jobs:
517524
requirements_files: "${{ env.SRC_DIR }}/samples/requirements.txt"
518525
local_wheel_dir: ${{ env.INSTALL_DIR }}/wheels
519526

527+
- name: Setup NodeJS
528+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
529+
with:
530+
node-version: 21
531+
532+
- name: Install GenAI NPM package
533+
working-directory: ${{ env.SRC_DIR }}/src/js
534+
run: |
535+
npm install --verbose
536+
Remove-Item -Recurse -Force node_modules/openvino-node/bin
537+
Copy-Item -Recurse ${{ env.INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
538+
539+
- name: Install NPM dependencies for samples
540+
working-directory: ${{ env.SRC_DIR }}/samples/js/text_generation
541+
run: |
542+
npm install --verbose
543+
Remove-Item -Recurse -Force node_modules/openvino-node/bin
544+
Copy-Item -Recurse ${{ env.INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
545+
520546
- name: Test Samples (Python and C++)
521547
run: python -m pytest -vs ${{ env.SRC_DIR }}/${{ matrix.test.cmd }} -m "${{ matrix.test.marker }}"
522548
env:
523549
PATH: "${{ env.INSTALL_DIR }}/runtime/bin/intel64/${{ matrix.build-type }};${{ env.INSTALL_DIR }}/runtime/3rdparty/tbb/bin;%PATH%" # Required for C++ samples
524550
SAMPLES_PY_DIR: "${{ env.INSTALL_DIR }}/samples/python"
551+
SAMPLES_JS_DIR: "${{ env.SRC_DIR }}/samples/js"
525552
SAMPLES_CPP_DIR: "${{ env.INSTALL_DIR }}/samples_bin"
526553
SAMPLES_C_DIR: "${{ env.INSTALL_DIR }}/samples_bin"
527554

0 commit comments

Comments
 (0)