Skip to content

Commit

Permalink
build-windows: use move core/lib workaround (dlls not copied by inclu…
Browse files Browse the repository at this point in the history
…de-package-data)
  • Loading branch information
aoirint committed Dec 30, 2021
1 parent 31f32c1 commit 4145ca0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,6 @@ jobs:
--include-package=anyio
--include-package-data=pyopenjtalk
--include-package-data=scipy
--include-package-data=core
--include-data-file="VERSION.txt=./"
--include-data-file="licenses.json=./"
--include-data-file="presets.yaml=./"
Expand Down Expand Up @@ -771,7 +770,8 @@ jobs:
# Nuitka copies core.dll to run.dist/core.dll
# but core Python module will load core.dll from run.dist/core/lib/core.dll.
mkdir -p run.dist/core/lib
# mv run.dist/core.dll run.dist/core/lib/
mv run.dist/core.dll run.dist/core/lib/
mv run.dist/onnxruntime*.dll run.dist/core/lib/
# Build artifact directory
mkdir -p artifact
Expand All @@ -780,8 +780,8 @@ jobs:
# Copy DLL dependencies
if [ -f "download/onnxruntime/lib/onnxruntime_providers_cuda.dll" ]; then
# ONNX Runtime providers
# ln -sf "$(pwd)/download/onnxruntime/lib"/onnxruntime_*.dll artifact/core/lib/
# ONNX Runtime providers (Nuitka does not copy dynamic loaded libraries)
ln -sf "$(pwd)/download/onnxruntime/lib"/onnxruntime_*.dll artifact/core/lib/
# CUDA
ln -sf "$(pwd)/download/cuda/bin"/cublas64_*.dll artifact/
Expand Down

0 comments on commit 4145ca0

Please sign in to comment.