Skip to content

Commit 7fbccad

Browse files
committed
Use tee so build output appears in both step log and artifact
The build step was using >> to redirect all output to compilation.log, hiding it from the step log. Since step links now point to the specific warning line, the output must be visible in the step log. Using tee sends output to both the file and stdout. https://claude.ai/code/session_01Eph17CQCfdnKaJhA2nSr9W
1 parent 8f26629 commit 7fbccad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: configure
3131
run: cmake -S. -Bbuild
3232
- name: build-${{ matrix.os.name }}
33-
run: cmake --build build >> compilation.log 2>&1
33+
run: cmake --build build 2>&1 | tee compilation.log
3434
- uses: actions/upload-artifact@v6
3535
with:
3636
name: compilation_${{ github.run_id }}_${{ job.check_run_id }}_log

0 commit comments

Comments
 (0)