Skip to content

Commit 2240cae

Browse files
committed
CI: output build errors as GitHub annotations
1 parent 120c964 commit 2240cae

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ jobs:
6666
uses: actions/checkout@v6
6767

6868
- name: Build
69-
run: make
69+
run: |
70+
make 2>&1 | tee /tmp/build.log || {
71+
while IFS= read -r line; do
72+
echo "::error::$line"
73+
done < /tmp/build.log
74+
exit 1
75+
}
7076
7177
- name: Verify binary
7278
run: ./thinproxy -V
@@ -126,7 +132,13 @@ jobs:
126132
uses: actions/checkout@v6
127133

128134
- name: Build
129-
run: make
135+
run: |
136+
make 2>&1 | tee /tmp/build.log || {
137+
while IFS= read -r line; do
138+
echo "::error::$line"
139+
done < /tmp/build.log
140+
exit 1
141+
}
130142
131143
- name: Verify binary
132144
run: ./thinproxy -V

0 commit comments

Comments
 (0)