Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
add windows build exe
Browse files Browse the repository at this point in the history
  • Loading branch information
czhen-zilliz committed Nov 30, 2021
1 parent 9a23d7e commit 15d1bcb
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/update_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
python-version: "3.8"
architecture: "x64"
- name: Install pypa/build
run: >-
python -m
Expand Down Expand Up @@ -53,3 +53,35 @@ jobs:
repository_url: https://test.pypi.org/legacy/
packages_dir: dist/
verify_metadata: false
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
architecture: "x64"
- name: Install requirements
run: >-
python -m
pip install
-e
.
- name: Install pyreadline
run: >-
python -m
pip install
pyreadline
- name: Install pyinstaller.
run: >-
python -m
pip install
pyinstaller
- name: build to dist/
run: |
pyinstaller -F ./milvus_cli/scripts/milvus_cli.py -p ./milvus_cli --clean --hidden-import pyreadline
- name: Update assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./dist/*

0 comments on commit 15d1bcb

Please sign in to comment.