about summary refs log tree commit diff
path: root/ops/pipelines/depot.nix
blob: ad5a3faabe310f1463d1c596ac3790c4f2c792e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This file configures the primary build pipeline used for the
# top-level list of depot targets.
#
# It outputs a "YAML" (actually JSON) file which is evaluated and
# submitted to Buildkite at the start of each build. This means we can
# dynamically configure the pipeline execution here.
{ depot, pkgs, ... }:

let
  inherit (builtins) toJSON;
  inherit (pkgs) writeText;

  # This defines the build pipeline, using the pipeline format
  # documented on https://buildkite.com/docs/pipelines/defining-steps
  pipeline.steps = [
    {
      command = "nix-build -A ciBuilds.__allTargets --show-trace";
      label = ":duck:";
    }
    {
      command = "${depot.nix.bufCheck}/bin/ci-buf-check";
      label = ":water_buffalo:";
    }
  ];
in writeText "depot.yaml" (toJSON pipeline)