diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-07-26 15:46:13 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-26 15:47:34 -0700 |
commit | 2762692621aec8b3d1e1839c2dc18965a4af0a18 (patch) | |
tree | 773e3020d89a3a1488ac25e8f9e0f67b7ab47465 /tools | |
parent | b50122379c696f1ae31d4fa914c1c14d28cae826 (diff) |
Add debug symbols to published runsc binary
This allows published binary to be debugged if needed.
PiperOrigin-RevId: 260228367
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_build.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/run_build.sh b/tools/run_build.sh index d49a1d4be..7f6ada480 100755 --- a/tools/run_build.sh +++ b/tools/run_build.sh @@ -31,16 +31,19 @@ elif [[ -v KOKORO_GIT_COMMIT ]] && [[ -d github/repo ]]; then fi # Build runsc. -bazel build //runsc +bazel build -c opt --strip=never //runsc # Move the runsc binary into "latest" directory, and also a directory with the # current date. if [[ -v KOKORO_ARTIFACTS_DIR ]]; then latest_dir="${KOKORO_ARTIFACTS_DIR}"/latest today_dir="${KOKORO_ARTIFACTS_DIR}"/"$(date -Idate)" + runsc="bazel-bin/runsc/linux_amd64_pure/runsc" + mkdir -p "${latest_dir}" "${today_dir}" - cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${latest_dir}" + cp "${runsc}" "${latest_dir}" + cp "${runsc}" "${today_dir}" + sha512sum "${latest_dir}"/runsc | awk '{print $1 " runsc"}' > "${latest_dir}"/runsc.sha512 - cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${today_dir}" - sha512sum "${today_dir}"/runsc | awk '{print $1 " runsc"}' > "${today_dir}"/runsc.sha512 + cp "${latest_dir}"/runsc.sha512 "${today_dir}"/runsc.sha512 fi |