Skip to content

Commit f575c35

Browse files
Update build_linux_amd.yml
1 parent 447acc2 commit f575c35

1 file changed

Lines changed: 2 additions & 28 deletions

File tree

.github/workflows/build_linux_amd.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)