Skip to content

Commit d8f7a50

Browse files
committed
ci: 使用windows环境安装uv 进行编译
1 parent 20c48bf commit d8f7a50

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ on:
66
jobs:
77
build:
88
if: startsWith(github.ref, 'refs/tags/')
9-
runs-on: ubuntu-latest
9+
runs-on: windows-latest
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v2
13-
- name: Build executable with PyInstaller
14-
uses: JackMcKew/pyinstaller-action-windows@v0.1.2
13+
- name: Install the latest version of uv
14+
uses: astral-sh/setup-uv@v6
1515
with:
16-
path: '.'
17-
spec: 'k2c.spec' # 可选
18-
# requirements: 'requirements.txt' # 可选
16+
version: "latest"
17+
- run: |
18+
uv --version
19+
uv sync pyproject.toml
20+
- name: build the project
21+
run: |
22+
pyinstaller k2c.spec
1923
- run: ls dist
2024
- run: mv dist/k2c.exe .
2125
- name: zip the build

0 commit comments

Comments
 (0)