File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,48 +24,22 @@ jobs:
2424
2525 - name : Configure Qt Project
2626 run : |
27- pwd # 打印当前工作目录
28- ls -l # 列出当前目录内容
2927 mkdir -p build # 确保 build 目录被创建
30- if [ $? -ne 0 ]; then
31- echo "Failed to create build directory"
32- exit 1
33- fi
3428 cd build
35- pwd # 打印当前工作目录
3629 qmake ../ -spec linux-g++ CONFIG+=release
37- if [ $? -ne 0 ]; then
38- echo "qmake failed"
39- exit 1
40- fi
4130
4231 - name : Build Project
4332 run : |
4433 cd build
45- pwd # 打印当前工作目录
46- make VERBOSE=1
34+ make VERBOSE=1 # 使用详细模式编译,方便调试
4735
4836 - name : Check Build Output
4937 run : |
5038 cd build
51- pwd # 打印当前工作目录
5239 ls -l # 列出 build 目录中的所有文件,确认 SerialPortDebugger 是否生成
5340
54- - name : Ensure Executable Permissions
55- run : |
56- cd build
57- pwd # 打印当前工作目录
58- chmod +x SerialPortDebugger # 确保可执行文件有执行权限
59-
60- - name : Run Tests (Optional)
61- run : |
62- cd build
63- pwd # 打印当前工作目录
64- ./SerialPortDebugger # 运行可执行文件
65- if : success() || failure()
66-
6741 - name : Archive Artifacts
6842 uses : actions/upload-artifact@v4
6943 with :
7044 name : Linux-Build
71- path :
45+ path : build/
You can’t perform that action at this time.
0 commit comments