-
Notifications
You must be signed in to change notification settings - Fork 13.6k
updated buildkite pipeline generation #65574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,19 @@ set -ex | |
set -o pipefail | ||
|
||
MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}" | ||
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build/monolithic-linux}" | ||
|
||
BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}" | ||
rm -rf ${BUILD_DIR} | ||
|
||
ccache --zero-stats | ||
ccache --show-config | ||
|
||
if [[ -n "${CLEAR_CACHE:-}" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how can you set this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can do that when creating a build in buildkite UI or triggering through API with "environment" varaibles. It's not available for "normal" users |
||
echo "clearing cache" | ||
ccache --clear | ||
fi | ||
|
||
function show-stats { | ||
ccache --print-stats | ||
mkdir -p artifacts | ||
ccache --print-stats > artifacts/ccache_stats.txt | ||
} | ||
trap show-stats EXIT | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quoting is inconsistent, I believe all of these don't need quotes
(other files as well)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.