Skip to content

Commit edd2186

Browse files
committed
在linux 上使用 uv 安装,以兼容更多的glibc版本
1 parent 359c055 commit edd2186

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pythonapp.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Python application
22
on:
33
push:
44
branches:
5-
- master
65
- devel
76

87
jobs:
@@ -18,9 +17,15 @@ jobs:
1817

1918
- name: 跑起来~
2019
run: |
20+
echo "安装uv"
21+
curl -LsSf https://astral.sh/uv/install.sh | sh
22+
uv python install 3.12
23+
uv venv build-uv-venv
24+
source build-uv-venv/bin/activate
25+
echo "安装uv+启用虚拟环境"
2126
ls -lh
2227
echo "==================="
23-
pip install -U --break-system-package -r requireument.txt
28+
uv pip install -r requireument.txt
2429
pyinstaller main.spec
2530
echo "==================="
2631
ls -lh

0 commit comments

Comments
 (0)