-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move build_binaries_rust into build_test_and_copy_to_placer
Change-Id: I342612f53b75aaf4f7cd8930d0150cc48db64b33
- Loading branch information
Showing
4 changed files
with
38 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
# shellcheck source=./kokoro/helpers/common.sh | ||
source "$(dirname "$0")/helpers/common.sh" | ||
|
||
./scripts/docker_pull | ||
./scripts/docker_run nix develop .#ci --command just kokoro_build_binaries_rust | ||
./scripts/git_check_diff | ||
|
||
mkdir -p "${KOKORO_ARTIFACTS_DIR}/test_logs/" | ||
cp --preserve=timestamps \ | ||
./target/nextest/default/*.xml \ | ||
"${KOKORO_ARTIFACTS_DIR}/test_logs/" || true | ||
|
||
mkdir -p "${KOKORO_ARTIFACTS_DIR}/binaries/" | ||
|
||
# Store the git commit hash in the name of an empty file, so that it can be | ||
# efficiently found via a glob. | ||
touch "${KOKORO_ARTIFACTS_DIR}/binaries/git_commit_${KOKORO_GIT_COMMIT_oak:?}" | ||
|
||
# Copy the generated binaries to Placer. The timestamps are used to convey | ||
# the creation time. | ||
readonly generated_binaries=( | ||
artifacts/enclave_apps/key_xor_test_app | ||
artifacts/client_app.apk | ||
artifacts/enclave_apps/oak_echo_enclave_app | ||
artifacts/enclave_apps/oak_echo_raw_enclave_app | ||
artifacts/enclave_apps/oak_functions_enclave_app | ||
artifacts/enclave_apps/oak_functions_insecure_enclave_app | ||
artifacts/enclave_apps/oak_orchestrator | ||
artifacts/oak_restricted_kernel_wrapper_simple_io_channel_bin | ||
artifacts/stage0_bin | ||
artifacts/stage0_bin_tdx | ||
) | ||
readonly binary_names=( | ||
key_xor_test_app | ||
oak_client_android_app | ||
oak_echo_enclave_app | ||
oak_echo_raw_enclave_app | ||
oak_functions_enclave_app | ||
oak_functions_insecure_enclave_app | ||
oak_orchestrator | ||
oak_restricted_kernel_simple_io_init_rd_wrapper_bin | ||
stage0_bin | ||
stage0_bin_tdx | ||
) | ||
for i in "${!binary_names[@]}"; do | ||
cp --preserve=timestamps \ | ||
"${generated_binaries[$i]}" \ | ||
"${KOKORO_ARTIFACTS_DIR}/binaries/${binary_names[$i]}" | ||
done | ||
|
||
ls -alsR "${KOKORO_ARTIFACTS_DIR}/binaries" | ||
|
||
# Print binary digests (ignore failures, e.g. for directories). | ||
sha256sum "${KOKORO_ARTIFACTS_DIR}"/binaries/* || true | ||
|
||
kokoro_cleanup | ||
# No-op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters