@@ -15,50 +15,54 @@ jobs:
15
15
runs-on : ${{ matrix.os }}
16
16
17
17
steps :
18
- - name : Check-out repository
18
+ - name : 检出代码
19
19
uses : actions/checkout@v4
20
20
21
- - name : Check if main.py and prompt.txt exist
21
+ - name : 检查 main.py 和 prompt.txt 是否存在
22
22
shell : bash
23
23
run : |
24
24
if [ ! -f "main.py" ]; then
25
- echo "Error : main.py does not exist !"
25
+ echo "错误 : main.py 不存在 !"
26
26
exit 1
27
27
fi
28
28
if [ ! -f "files/prompt.txt" ]; then
29
- echo "Error : files/prompt.txt does not exist !"
29
+ echo "错误 : files/prompt.txt 不存在 !"
30
30
exit 1
31
31
fi
32
32
33
- - name : Setup Python
33
+ - name : 设置 Python 环境
34
34
uses : actions/setup-python@v5
35
35
with :
36
36
python-version : ' 3.10'
37
37
cache : ' pip'
38
38
cache-dependency-path : |
39
39
**/requirements*.txt
40
40
41
- - name : Install your Dependencies
41
+ - name : 安装依赖
42
42
run : |
43
43
pip install -r requirements.txt
44
44
45
- - name : Verify Installed Dependencies
45
+ - name : 验证已安装的依赖
46
46
run : |
47
47
pip list
48
48
49
- - name : Build Executable with Nuitka
49
+ - name : 使用 Nuitka 打包可执行文件
50
50
uses : Nuitka/Nuitka-Action@main
51
51
with :
52
52
nuitka-version : main
53
53
script-name : main.py
54
54
mode : app
55
- include-data-files : |
56
- ./files/prompt.txt =files/prompt.txt
55
+ include-data-dir : |
56
+ ./files=files
57
57
58
- - name : Upload Artifacts
58
+ - name : 列出打包后的文件
59
+ run : |
60
+ ls -R build/
61
+
62
+ - name : 上传构建产物
59
63
uses : actions/upload-artifact@v4
60
64
with :
61
- name : ${{ runner.os }} Build
65
+ name : ${{ runner.os }} 构建
62
66
path : |
63
67
build/
64
- include-hidden-files : true
68
+ include-hidden-files : true
0 commit comments