mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-04 23:01:07 +08:00
local ci: add intel mac
This commit is contained in:
parent
6175290c3a
commit
fafe23cda6
2 changed files with 9 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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" "$@"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue