Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Retribution98 committed Feb 10, 2025
1 parent 252a26b commit 3a659b7
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
name: Download OpenVINO package
outputs:
status: ${{ steps.openvino_download.outcome }}
ov_artifact_name: ${{ steps.openvino_download.outputs.ov_artifact_name }}
ov_wheel_source: ${{ steps.openvino_download.outputs.ov_wheel_source }}
timeout-minutes: 10
defaults:
run:
Expand All @@ -34,10 +36,11 @@ jobs:
steps:
- name: Download OpenVINO build
id: openvino_download
run: |
wget ${{ env.OV_TARBALL}} --progress=bar:force:noscroll -O openvino_package.zip
unzip -l openvino_package.zip
continue-on-error: true
uses: openvinotoolkit/openvino/.github/actions/openvino_provider@master
with:
platform: windows
commit_packages_to_provide: all
revision: latest_available_commit

#
# Upload to artifacts
Expand Down Expand Up @@ -521,10 +524,11 @@ jobs:
submodules: recursive

- name: Download OpenVINO package
uses: actions/download-artifact@v4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: openvino_package
name: ${{ needs.openvino_download.outputs.ov_artifact_name }}
path: ${{ env.OV_INSTALL_DIR }}
merge-multiple: true

- name: Extract OpenVINO packages
run: |
Expand All @@ -546,9 +550,9 @@ jobs:
- name: Build GenAI Node.js bindings
run: |
. "${{ env.OV_INSTALL_DIR }}/setupvars.ps1"
cmake -DCMAKE_BUILD_TYPE=Release \
-DENABLE_JS=ON -DCPACK_GENERATOR=NPM \
-DENABLE_PYTHON=OFF -DENABLE_WHEEL=OFF \
cmake -DCMAKE_BUILD_TYPE=Release `
-DENABLE_JS=ON -DCPACK_GENERATOR=NPM `
-DENABLE_PYTHON=OFF -DENABLE_WHEEL=OFF `
-S ./ -B ${{ env.BUILD_DIR }}
cmake --build ${{ env.BUILD_DIR }} --config Release --parallel --verbose
cmake --install ${{ env.BUILD_DIR }} --config Release --prefix ${{ env.INSTALL_DIR }}
Expand All @@ -574,10 +578,10 @@ jobs:
- name: Install npm package tests dependencies
working-directory: ./src/js
run: |
cp -R ${{ env.INSTALL_DIR }} bin
Copy-Item -Recurse ${{ env.INSTALL_DIR }} bin
npm install
rm -rf node_modules/openvino-node/bin
cp -R ${{ env.OV_INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
Remove-Item -Recurse -Force node_modules/openvino-node/bin
Copy-Item -Recurse ${{ env.OV_INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
- name: Run npm package tests
working-directory: ./src/js
Expand All @@ -588,8 +592,8 @@ jobs:
working-directory: ./samples/js/text_generation
run: |
npm install
rm -rf node_modules/openvino-node/bin
cp -R ${{ env.OV_INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
Remove-Item -Recurse -Force node_modules/openvino-node/bin
Copy-Item -Recurse ${{ env.OV_INSTALL_DIR }}/openvino_js_package node_modules/openvino-node/bin
- name: Run samples tests
run: npm test
Expand Down

0 comments on commit 3a659b7

Please sign in to comment.