More CI (#3)
- ci only: use a separate zig cache dir for each run - use `tools/bazel` everywhere. - remove arm64 tests. They don't give enough value to be worth the brittle environment. - remove windows execution, except for launcher. Ditto. I will probably bring them back.
This commit is contained in:
@@ -1,8 +1,39 @@
|
||||
# Copyright 2023 Uber Technologies, Inc.
|
||||
# Licensed under the Apache License, Version 2.0
|
||||
|
||||
steps:
|
||||
- label: "Build"
|
||||
command: tools/bazel build //...
|
||||
- label: "Test"
|
||||
command: |
|
||||
. .buildkite/setup-bazelrc.sh
|
||||
ci/test
|
||||
- label: "Lint"
|
||||
command: ci/lint
|
||||
command: |
|
||||
. .buildkite/setup-bazelrc.sh
|
||||
ci/lint
|
||||
- label: "List Platforms"
|
||||
command: "ci/list_toolchains_platforms"
|
||||
- label: "Test Release and Launcher scripts"
|
||||
command: |
|
||||
git config --global user.email "buildkite@example.com"
|
||||
git config --global user.name "Buildkite Bot"
|
||||
|
||||
echo "--- ci/release"
|
||||
ci/release
|
||||
echo "--- ci/launcher"
|
||||
ci/launcher
|
||||
- label: "Test Launcher on wine64"
|
||||
plugins:
|
||||
- docker#v5.5.0:
|
||||
image: "debian:stable"
|
||||
command: |
|
||||
apt-get update && apt-get install --no-install-recommends -y \
|
||||
wine64 python3 ca-certificates
|
||||
ci/launcher-wine64
|
||||
- label: "mod-tidy and update-repos"
|
||||
command: |
|
||||
. .buildkite/setup-bazelrc.sh
|
||||
bin/mod-tidy
|
||||
git diff --exit-code
|
||||
agents:
|
||||
- "queue=init"
|
||||
- "docker=*"
|
||||
|
||||
15
.buildkite/setup-bazelrc.sh
Executable file
15
.buildkite/setup-bazelrc.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
# Copyright 2023 Uber Technologies, Inc.
|
||||
# Licensed under the Apache License, Version 2.0
|
||||
|
||||
if [ -z "${BUILDKITE_BUILD_NUMBER:-}" ]; then
|
||||
>&2 echo "error: expected to run in buildkite"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export BAZEL_ZIG_CC_CACHE_PREFIX="/tmp/bazel-zig-cc${BUILDKITE_BUILD_NUMBER}"
|
||||
mkdir -p "$BAZEL_ZIG_CC_CACHE_PREFIX"
|
||||
|
||||
cat > .custom.ci.bazelrc <<EOF
|
||||
common --repo_env BAZEL_ZIG_CC_CACHE_PREFIX="$BAZEL_ZIG_CC_CACHE_PREFIX"
|
||||
build --sandbox_writable_path "$BAZEL_ZIG_CC_CACHE_PREFIX"
|
||||
EOF
|
||||
Reference in New Issue
Block a user