Skip to content

Commit

Permalink
local ci: add intel mac
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jul 27, 2024
1 parent 6175290 commit fafe23c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions packages/ci/layout.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions packages/om-ci-build-remote.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"
'';
}

0 comments on commit fafe23c

Please sign in to comment.