ci: tee elb output to file; dump on failure in separate step
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 13m48s
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 13m48s
This commit is contained in:
+14
-14
@@ -112,23 +112,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Build neuron-web with elb
|
- name: Build neuron-web with elb
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -uo pipefail
|
||||||
echo "=== SDK env ==="
|
echo "ELB=$ELB ELC=$ELC EL_RUNTIME=$EL_RUNTIME"
|
||||||
echo "ELB=$ELB"
|
|
||||||
echo "ELC=$ELC"
|
|
||||||
echo "EL_RUNTIME=$EL_RUNTIME"
|
|
||||||
echo "=== SDK files ==="
|
|
||||||
ls -la "$ELB" "$ELC"
|
ls -la "$ELB" "$ELC"
|
||||||
ls -la "$EL_RUNTIME/"
|
|
||||||
echo "=== manifest ==="
|
|
||||||
cat manifest.el
|
|
||||||
echo "=== running elb ==="
|
|
||||||
# stdbuf -oL forces line-buffered stdout so output isn't lost if elb fails.
|
|
||||||
# Without it, println output buffers in the C pipe and evaporates on non-zero exit.
|
|
||||||
stdbuf -oL "$ELB" \
|
stdbuf -oL "$ELB" \
|
||||||
--elc="$ELC" \
|
--elc="$ELC" \
|
||||||
--runtime="$EL_RUNTIME"
|
--runtime="$EL_RUNTIME" 2>&1 | tee /tmp/elb.log
|
||||||
echo "Binary: $(ls -lh dist/neuron-landing)"
|
ELB_EXIT=${PIPESTATUS[0]}
|
||||||
|
if [ "$ELB_EXIT" -eq 0 ]; then
|
||||||
|
echo "Binary: $(ls -lh dist/neuron-landing)"
|
||||||
|
fi
|
||||||
|
exit "$ELB_EXIT"
|
||||||
|
|
||||||
|
- name: Dump full elb output (on failure)
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
echo "=== full elb output ==="
|
||||||
|
cat /tmp/elb.log || echo "(no log file)"
|
||||||
|
|
||||||
# ── Compile JS client sources ─────────────────────────────────────────
|
# ── Compile JS client sources ─────────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user