-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ci
to remotely build on two CI machines
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"b4dm4n.nixpkgs-fmt", | ||
"jnoortheen.nix-ide", | ||
"mattn.lisp", | ||
"mkhl.direnv" | ||
"mkhl.direnv", | ||
"kdl-org.kdl" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
# Useful for Nix development | ||
nixci | ||
nixci-build-remote | ||
ci | ||
nix-health | ||
nixpkgs-fmt | ||
just | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ writeShellApplication, nixci-build-remote, zellij, ... }: | ||
|
||
writeShellApplication { | ||
name = "ci"; | ||
runtimeInputs = [ nixci-build-remote zellij ]; | ||
meta.description = '' | ||
Run CI locally. | ||
Powered by nixci, zellij and your beefy machines over SSH. | ||
''; | ||
text = '' | ||
PRJ=$(basename "$(pwd)") | ||
zellij --layout ${./layout.kdl} attach --create "$PRJ"-ci --force-run-commands | ||
''; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// TODO: Make it a nix module? | ||
// - Don't't hardcode hostnames/ systems | ||
// - Use nix store path for nixci-build-remote | ||
layout { | ||
pane size=1 borderless=true { | ||
plugin location="tab-bar" | ||
} | ||
pane split_direction="vertical" { | ||
pane { | ||
name "x86_64-linux" | ||
command "nixci-build-remote" | ||
args "nix-infra@dosa" | ||
} | ||
pane { | ||
name "aaarch64-linux" | ||
command "nixci-build-remote" | ||
args "nix-infra@sambar" | ||
} | ||
} | ||
pane size=2 borderless=true { | ||
plugin location="status-bar" | ||
} | ||
} |
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