From 230a85abbec459d09626e40e7daeabbca94f6e52 Mon Sep 17 00:00:00 2001 From: jinbridge <2635480475@qq.com> Date: Mon, 4 Mar 2024 14:54:04 +0800 Subject: [PATCH] fix --- .github/workflows/bigdl-build-portable-zip.yml | 3 +-- python/llm/portable-zip/setup.bat | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bigdl-build-portable-zip.yml b/.github/workflows/bigdl-build-portable-zip.yml index 51da7dd6dd4..bc8c9963c62 100644 --- a/.github/workflows/bigdl-build-portable-zip.yml +++ b/.github/workflows/bigdl-build-portable-zip.yml @@ -46,12 +46,11 @@ jobs: run: | cd .\python\llm\portable-zip setup.bat --python-zip - powershell -Command "Expand-Archive .\bigdl-llm.zip -DestinationPath .\bigdl-llm-portable" cd ..\..\.. - uses: actions/upload-artifact@v4 with: name: bigdl-llm-portable - path: ./python/llm/portable-zip/bigdl-llm-portable/ + path: ./python/llm/portable-zip/bigdl-llm-portable.zip generate-gpg-sign: needs: build-portable-zip runs-on: [self-hosted, Bree] diff --git a/python/llm/portable-zip/setup.bat b/python/llm/portable-zip/setup.bat index dc1527f35dc..5135095d497 100644 --- a/python/llm/portable-zip/setup.bat +++ b/python/llm/portable-zip/setup.bat @@ -1,6 +1,5 @@ :: download python and extract zip if "%1"=="--python-zip" ( - powershell -Command "Expand-Archive .\cpython-3.9-embed-zip.zip -DestinationPath ." powershell -Command "Expand-Archive .\cpython-embed-zip.zip -DestinationPath .\python-embed" ) else ( powershell -Command "Start-BitsTransfer -Source https://www.python.org/ftp/python/3.9.13/python-3.9.13-embed-amd64.zip -Destination python-3.9.13-embed-amd64.zip" @@ -32,7 +31,7 @@ if "%1"=="--ui" ( :: compress the python and scripts if "%1"=="--ui" ( - powershell -Command "Compress-Archive -Path '.\python-embed', '.\kv_cache.py', '.\chat-ui.bat', '.\README.md' -DestinationPath .\bigdl-llm-ui.zip" + powershell -Command "Compress-Archive -Path '.\python-embed', '.\kv_cache.py', '.\chat-ui.bat', '.\README.md' -DestinationPath .\bigdl-llm-portable-ui.zip" ) else ( - powershell -Command "Compress-Archive -Path '.\python-embed', '.\kv_cache.py', '.\chat.bat', '.\chat.py', '.\README.md' -DestinationPath .\bigdl-llm.zip" + powershell -Command "Compress-Archive -Path '.\python-embed', '.\kv_cache.py', '.\chat.bat', '.\chat.py', '.\README.md' -DestinationPath .\bigdl-llm-portable.zip" ) \ No newline at end of file