Skip to content

Commit

Permalink
chore(buildkite): switch to new CI system
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Hess <[email protected]>
  • Loading branch information
dhess committed Mar 25, 2024
1 parent baed870 commit 6598a61
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 55 deletions.
25 changes: 14 additions & 11 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
agents:
public: "true"
os: "linux"
queue: "nix-eval"

steps:
- command: nix flake archive .#
label: ":nixos: Archive Nix flake inputs"
agents:
queue: "nix-build"

- command: nix-buildkite
label: ":nixos: :buildkite: Build required CI jobs"
label: ":nixos: :buildkite:"
plugins:
- hackworthltd/nix-buildkite#hackworthltd-v10:
- hackworthltd/nix#v1.0.0:
file: ci.nix

- label: ":nixos: Archive Nix flake inputs"
command: nix flake archive .#
agent-tags: queue=nix-build

- wait

- label: ":nixos: :linux: Cache the Nix shell"
command: |
nix develop --print-build-logs --profile /tmp/primer --command echo "done"
agents:
queue: "nix-build"

- label: ":nixos: :macos: Cache the Nix shell"
command: |
nix develop --print-build-logs --profile /tmp/primer --command echo "done"
agents:
queue: "nix-build"
os: "darwin"

- label: ":nixos: :buildkite: :stopwatch: Run benchmarks"
command: nix-buildkite
agents:
public: "benchmarking"
plugins:
- hackworthltd/nix-buildkite#hackworthltd-v10:
- hackworthltd/nix#v1.0.0:
file: ci-benchmarks.nix
agent-tags: "public=benchmarking"
agent-tags: queue=nix-benchmark
2 changes: 1 addition & 1 deletion .buildkite/primer-wasm.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
agents:
public: "true"
queue: "nix-build"
os: "linux"

steps:
Expand Down
15 changes: 5 additions & 10 deletions .buildkite/public-cache-push.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
agents:
public: "true"
queue: "cachix-push"
os: "linux"

env:
CACHIX_CACHE_NAME: hackworthltd
CACHIX_CONFIG_PATH: /var/lib/cachix/hackworthltd/cachix.dhall

steps:
- label: ":nixos: Archive Nix flake inputs to public cache"
command: nix run github:hackworthltd/hacknix#cachix-archive-flake-inputs .# $CACHIX_CONFIG_PATH $CACHIX_CACHE_NAME
command: nix run github:hackworthltd/hacknix#cachix-archive-flake-inputs .# $CACHIX_CACHE_NAME

- label: ":nixos: Push project to public cache"
command: nix run github:hackworthltd/hacknix#cachix-push-attr ciJobs $CACHIX_CONFIG_PATH $CACHIX_CACHE_NAME
# Limit to 1 such job at a time because this could be very
# bandwidth-intensive, and sustained.
concurrency: 1
concurrency_group: "primer-cachix-push"
command: nix run github:hackworthltd/hacknix#cachix-push-attr ciJobs $CACHIX_CACHE_NAME

- wait

- label: ":nixos: :linux: Cache Nix shell to public cache"
command: nix run github:hackworthltd/hacknix#cachix-push-flake-dev-shell primer-dev-shell $CACHIX_CONFIG_PATH $CACHIX_CACHE_NAME
command: nix run github:hackworthltd/hacknix#cachix-push-flake-dev-shell primer-dev-shell $CACHIX_CACHE_NAME

- label: ":nixos: :macos: Cache Nix shell to public cache"
command: nix run github:hackworthltd/hacknix#cachix-push-flake-dev-shell primer-dev-shell $CACHIX_CONFIG_PATH $CACHIX_CACHE_NAME
command: nix run github:hackworthltd/hacknix#cachix-push-flake-dev-shell primer-dev-shell $CACHIX_CACHE_NAME
agents:
os: "darwin"
66 changes: 33 additions & 33 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6598a61

Please sign in to comment.