From 42b51c22a23396d332563c868ca0ac29431baac2 Mon Sep 17 00:00:00 2001 From: ziqinyeow Date: Sun, 19 May 2024 20:49:20 +0800 Subject: [PATCH] ci: fix --- .github/workflows/exe.yml | 6 +++++- pyproject.toml | 2 +- src/juxtapose/__init__.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/exe.yml b/.github/workflows/exe.yml index 3072535..aed8a4a 100644 --- a/.github/workflows/exe.yml +++ b/.github/workflows/exe.yml @@ -54,11 +54,15 @@ jobs: mv src/juxtapose examples/fastapi-pyinstaller pyinstaller -c -F --clean --hidden-import=cv2 --hidden-import=supervision --hidden-import=addict --hidden-import=chex --hidden-import=lap --hidden-import=optax --hidden-import=einshape --hidden-import=haiku --hidden-import=mediapy --name sidecar-x86_64-pc-windows-msvc-cpu --specpath dist --distpath dist examples/fastapi-pyinstaller/server.py - - name: Build Windows GPU exe + - name: Download ONNX dll if: ${{ matrix.platform == 'windows-latest' }} run: | Invoke-WebRequest https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-win-x64-gpu-1.17.1.zip -OutFile onnxruntime-win-x64-gpu-1.17.1.zip Expand-Archive -Force ./onnxruntime-win-x64-gpu-1.17.1.zip ./ + + - name: Build Windows GPU exe + if: ${{ matrix.platform == 'windows-latest' }} + run: | pyinstaller -c -F --clean \ --add-binary="../onnxruntime-win-x64-gpu-1.17.1/lib/onnxruntime_providers_cuda.dll;./onnxruntime/capi/" \ --add-binary="../onnxruntime-win-x64-gpu-1.17.1/lib/onnxruntime_providers_tensorrt.dll;./onnxruntime/capi/" \ diff --git a/pyproject.toml b/pyproject.toml index acff281..eabffdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" [tool.poetry] name = "juxtapose" -version = "0.0.33" +version = "0.0.34" description = "" authors = ["Zi Qin "] license = "MIT" diff --git a/src/juxtapose/__init__.py b/src/juxtapose/__init__.py index 6584dfd..cf21a52 100644 --- a/src/juxtapose/__init__.py +++ b/src/juxtapose/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.0.33" +__version__ = "0.0.34" from .rtm import RTM from .detectors import RTMDet, YOLOv8