File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -199,3 +199,29 @@ jobs:
199
199
# NOTE keep in sync with tests/RunTests.hs
200
200
bazel run @stackage-pinning-test-unpinned//:pin
201
201
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
You can’t perform that action at this time.
0 commit comments