Skip to content

Commit

Permalink
feat: add buildkite pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
johnae committed Nov 24, 2024
1 parent c60b2ee commit e1ec254
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
env:
CACHE_NAME: insane
NIX_CONFIG: accept-flake-config = true

steps:
- label: Set up cachix
command: |
nix shell nixpkgs#cachix --command bash <<'NIXSH'
cachix use "$CACHE_NAME"
NIXSH
- wait
- label: Nix lint
command: nix shell nixpkgs#cachix --command bash -c "nix run .#world -- lint"
- label: Nix check
command: nix shell nixpkgs#cachix --command bash -c "nix run .#world -- check"
2 changes: 1 addition & 1 deletion flake/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
in
pkgs.writeShellApplication {
name = "world";
runtimeInputs = with pkgs; [just nushell statix deadnix];
runtimeInputs = with pkgs; [just nushell statix deadnix cachix];
text = ''
just -f ${pkgs.replaceVars ../files/Justfile.template {
inherit upgrade build;
Expand Down

0 comments on commit e1ec254

Please sign in to comment.