Skip to content

Commit

Permalink
Debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Aug 8, 2023
1 parent 10aaf25 commit ed9de08
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,29 @@ jobs:
# NOTE keep in sync with tests/RunTests.hs
bazel run @stackage-pinning-test-unpinned//:pin
bazel build @stackage-pinning-test//:hspec
- name: Collect logs
if: always()
shell: bash
run: |
export PATH=$HOME/bazel:$PATH
base=$( bazel info output_base )
cd "$base"
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -cf "$GITHUB_WORKSPACE/logs.tar"
- name: Collect logs
if: always()
shell: bash
run: |
export PATH=$HOME/bazel:$PATH
cd rules_haskell_tests
base=$( bazel info output_base )
cd "$base"
find -maxdepth 1 -name "java*.log.*" -print0 | xargs -0r tar --force-local -Af "$GITHUB_WORKSPACE/logs.tar"
- name: Upload logs
if: always()
uses: actions/upload-artifact@v3
with:
name: Logs ${{ matrix.os }} ${{ matrix.module }} ${{ matrix.bzlmod }}
path: logs.tar

0 comments on commit ed9de08

Please sign in to comment.