diff --git a/.ci/generate-buildkite-pipeline-premerge b/.ci/generate-buildkite-pipeline-premerge index c0071dcc7f312..7d14aed355d42 100755 --- a/.ci/generate-buildkite-pipeline-premerge +++ b/.ci/generate-buildkite-pipeline-premerge @@ -239,8 +239,8 @@ if [[ "${linux_projects}" != "" ]]; then - label: ':linux: Linux x64' artifact_paths: - artifacts/**/* - - '*_result.json' - - 'build/monolithic-linux/test-results.xml' + - *_result.json + - build/test-results.xml agents: ${LINUX_AGENTS} retry: automatic: @@ -262,8 +262,8 @@ if [[ "${windows_projects}" != "" ]]; then - label: ':windows: Windows x64' artifact_paths: - artifacts/**/* - - '*_result.json' - - 'build/monolithic-windows/test-results.xml' + - *_result.json + - build/test-results.xml agents: ${WINDOWS_AGENTS} retry: automatic: diff --git a/.ci/generate-buildkite-pipeline-scheduled b/.ci/generate-buildkite-pipeline-scheduled index 06607ce617941..6ad26aeb6e385 100755 --- a/.ci/generate-buildkite-pipeline-scheduled +++ b/.ci/generate-buildkite-pipeline-scheduled @@ -14,6 +14,18 @@ # See https://buildkite.com/docs/agent/v3/cli-pipeline#pipeline-format. # +set -eu +set -o pipefail + +# Filter rules for generic windows tests +: ${WINDOWS_AGENTS:='{"queue": "windows"}'} +# Filter rules for generic linux tests +: ${LINUX_AGENTS:='{"queue": "linux"}'} +# Set by buildkite +: ${BUILDKITE_MESSAGE:=} +: ${BUILDKITE_COMMIT:=} +: ${BUILDKITE_BRANCH:=} + cat < artifacts/ccache_stats.txt } trap show-stats EXIT diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh index da15f7c192390..83be9d04b9927 100755 --- a/.ci/monolithic-windows.sh +++ b/.ci/monolithic-windows.sh @@ -17,13 +17,19 @@ set -ex set -o pipefail MONOREPO_ROOT="${MONOREPO_ROOT:="$(git rev-parse --show-toplevel)"}" -BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build/monolithic-windows}" +BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}" rm -rf ${BUILD_DIR} +if [[ -n "${CLEAR_CACHE:-}" ]]; then + echo "clearing sccache" + rm -rf "$SCCACHE_DIR" +fi + sccache --zero-stats function show-stats { - sccache --show-stats + mkdir -p artifacts + sccache --show-stats >> artifacts/sccache_stats.txt } trap show-stats EXIT @@ -45,4 +51,4 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \ -D CMAKE_CXX_COMPILER_LAUNCHER=sccache echo "--- ninja" -ninja -C ${BUILD_DIR} ${targets} +ninja -C "${BUILD_DIR}" "${targets}"