Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JinBridger committed Mar 4, 2024
1 parent ccb6b8c commit 230a85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/bigdl-build-portable-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
5 changes: 2 additions & 3 deletions python/llm/portable-zip/setup.bat
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
)

0 comments on commit 230a85a

Please sign in to comment.