-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(buildkite): switch to new CI system (#1220)
- Loading branch information
Showing
4 changed files
with
54 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
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" | ||
queue: "nix-benchmark" | ||
plugins: | ||
- hackworthltd/nix-buildkite#hackworthltd-v10: | ||
- hackworthltd/nix#v1.0.0: | ||
file: ci-benchmarks.nix | ||
agent-tags: "public=benchmarking" | ||
agent-tags: queue=nix-benchmark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
agents: | ||
public: "true" | ||
queue: "nix-build" | ||
os: "linux" | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.