Skip to content

Commit e37fdf0

Browse files
author
AhmedYasserrr
committed
refactor: enhance CI workflow with debugging steps and correct artifact paths
1 parent 027a2c2 commit e37fdf0

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
build-linux:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- name: Checkout repository (with submodules)
14+
uses: actions/checkout@v3
1415
with:
1516
submodules: recursive
1617

@@ -19,6 +20,15 @@ jobs:
1920
sudo apt update
2021
sudo apt install -y cmake clang ninja-build git libftdi1-dev libusb-1.0-0-dev pkg-config
2122
23+
- name: Print environment info (for debugging)
24+
run: |
25+
echo "CC=$CC"
26+
echo "CXX=$CXX"
27+
clang --version
28+
cmake --version
29+
ninja --version
30+
pwd && ls -al
31+
2232
- name: Configure CMake
2333
run: |
2434
mkdir _build
@@ -30,11 +40,17 @@ jobs:
3040
cd _build
3141
ninja
3242
43+
- name: List build output (for debugging)
44+
run: |
45+
echo "::group::Build Output"
46+
find _build -type f
47+
echo "::endgroup::"
48+
3349
- name: Upload artifact
3450
uses: actions/upload-artifact@v3
3551
with:
3652
name: ectool-linux
37-
path: _build/src/ectool
53+
path: _build/src/core/ectool
3854

3955
build-windows:
4056
runs-on: windows-2022
@@ -59,5 +75,5 @@ jobs:
5975
with:
6076
name: ectool-windows
6177
path: |
62-
_build/src/RelWithDebInfo/ectool.exe
63-
_build/src/RelWithDebInfo/ectool.pdb
78+
_build/src/core/RelWithDebInfo/ectool.exe
79+
_build/src/core/RelWithDebInfo/ectool.pdb

0 commit comments

Comments
 (0)