1
1
mirror of https://github.com/kanaka/mal.git synced 2024-08-16 17:20:23 +03:00

github/ci.sh: enable and archive log/debug output

This commit is contained in:
Joel Martin 2021-04-23 14:29:27 -05:00
parent 1cf6e2f1a5
commit 085cc2f026
2 changed files with 17 additions and 2 deletions

View File

@ -54,6 +54,13 @@ jobs:
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v2
with:
name: logs
path: |
*.log
*.debug
macos:
needs: get-matrix
@ -80,3 +87,10 @@ jobs:
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v2
with:
name: logs
path: |
*.log
*.debug

5
ci.sh
View File

@ -7,7 +7,8 @@ IMPL=${2}
# Environment variable configuration
BUILD_IMPL=${BUILD_IMPL:-${IMPL}}
TEST_OPTS="${TEST_OPTS} --debug-file ../../${ACTION}.err"
log_prefix="../../${ACTION}${REGRESS:+-regress}"
TEST_OPTS="${TEST_OPTS} --log-file ${log_prefix}.log --debug-file ${log_prefix}.debug"
if [ "${DO_SELF_HOST}" ]; then
MAL_IMPL=${IMPL}
@ -70,7 +71,7 @@ test|perf)
${OPTIONAL:+OPTIONAL=${OPTIONAL}} \
${ACTION}^${IMPL}${STEP:+^${STEP}}; then
# print debug-file on error
cat ${ACTION}.err
cat ${log_prefix}.debug
false
fi
;;