Skip to content

Commit ed9de08

Browse files
committed
Debug logs
1 parent 10aaf25 commit ed9de08

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/workflow.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,29 @@ jobs:
199199
# NOTE keep in sync with tests/RunTests.hs
200200
bazel run @stackage-pinning-test-unpinned//:pin
201201
bazel build @stackage-pinning-test//:hspec
202+
203+
- name: Collect logs
204+
if: always()
205+
shell: bash
206+
run: |
207+
export PATH=$HOME/bazel:$PATH
208+
base=$( bazel info output_base )
209+
cd "$base"
210+
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -cf "$GITHUB_WORKSPACE/logs.tar"
211+
212+
- name: Collect logs
213+
if: always()
214+
shell: bash
215+
run: |
216+
export PATH=$HOME/bazel:$PATH
217+
cd rules_haskell_tests
218+
base=$( bazel info output_base )
219+
cd "$base"
220+
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -Af "$GITHUB_WORKSPACE/logs.tar"
221+
222+
- name: Upload logs
223+
if: always()
224+
uses: actions/upload-artifact@v3
225+
with:
226+
name: Logs ${{ matrix.os }} ${{ matrix.module }} ${{ matrix.bzlmod }}
227+
path: logs.tar

0 commit comments

Comments
 (0)