local ci: add intel mac

This commit is contained in:
Sridhar Ratnakumar 2024-07-27 15:05:33 -04:00
parent 6175290c3a
commit fafe23cda6
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

View file

@ -16,6 +16,11 @@ layout {
command "om-ci-build-remote"
args "nix-infra@sambar"
}
pane {
name "x86_64-darwin"
command "om-ci-build-remote"
args "nix-infra@sambar" "--systems" "x86_64-darwin"
}
}
pane size=2 borderless=true {
plugin location="status-bar"

View file

@ -5,15 +5,15 @@ writeShellApplication {
name = "om-ci-build-remote";
runtimeInputs = [ jq nix ];
meta.description = ''
`nixci build`, but build remotely over SSH.
`om ci build`, but build remotely over SSH.
'';
# TODO: This should handle --override-inputs
text = ''
FLAKE=$(nix flake metadata --json | jq -r .path)
set -x
nix copy --to "ssh://$1" "$FLAKE"
nix copy --to "ssh://$1" ${inputs.omnix}
HOST="$1"; shift
nix copy --to "ssh://$HOST" ${inputs.omnix} "$FLAKE"
# shellcheck disable=SC2029
ssh "$1" nix run ${inputs.omnix}#default ci build "$FLAKE"
ssh "$HOST" nix run ${inputs.omnix}#default -- ci build "$FLAKE" "$@"
'';
}