ci: Capture more output. * Compiled magic tarball. * Any coredumps. * The install log. Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
diff --git a/.github/build-docker.sh b/.github/build-docker.sh index bd9a48d..c92792d 100755 --- a/.github/build-docker.sh +++ b/.github/build-docker.sh
@@ -16,3 +16,8 @@ set -e docker build --rm -t magic . + +# Copy the build.tar.gz out of the docker container +docker run --name magic magic:latest +docker cp magic:/build.tar.gz ./magic.tar.gz +docker rm magic
diff --git a/.github/capture.sh b/.github/capture.sh index 6756700..7f849bf 100644 --- a/.github/capture.sh +++ b/.github/capture.sh
@@ -19,9 +19,21 @@ exit -1 fi +mkdir -p ${GITHUB_WORKSPACE}/output/ + +# Copy build log. +cp ./sky130/sky130A_install.log ${GITHUB_WORKSPACE}/output/ + +# Copy any core dupmps into the output directory. +find -name core -not \( -path */skywater-pdk/* -prune \) | \ + awk -v ln=1 '{print "cp " $0 " ${GITHUB_WORKSPACE}/output/core." ln++ }' | \ + bash + +# Copy the magic tarball into output +cp .github/magic.tar.gz ${GITHUB_WORKSPACE}/output/ + # Try to create a deterministic tar file # https://reproducible-builds.org/docs/archives/ -mkdir ${GITHUB_WORKSPACE}/output/ ( cd ${SKY130_DIR} tar \