b7ef2a579b
Extracts the logic for generating our Buildkite pipeline (which has been copy&pasted and slightly modified in some places outside of depot) into a generic //nix/buildkite library. This should cause no change in functionality. Change-Id: Iad3201713945de41279b39e4f1b847f697c179f7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4726 Autosubmit: tazjin <mail@tazj.in> Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
18 lines
551 B
Nix
18 lines
551 B
Nix
# This file configures the primary build pipeline used for the
|
|
# top-level list of depot targets.
|
|
{ depot, ... }:
|
|
|
|
let
|
|
# Protobuf check step which validates that changes to .proto files
|
|
# between revisions don't cause backwards-incompatible or otherwise
|
|
# flawed changes.
|
|
protoCheck = {
|
|
command = "${depot.nix.bufCheck}/bin/ci-buf-check";
|
|
label = ":water_buffalo:";
|
|
};
|
|
in depot.nix.buildkite.mkPipeline {
|
|
headBranch = "refs/heads/canon";
|
|
drvTargets = depot.ci.targets;
|
|
skipIfBuilt = true;
|
|
additionalSteps = [ protoCheck ];
|
|
}
|