mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-19 18:04:47 +00:00
ci: drop darwin shims, rebuild locally on netty runner
- remove macOS-era `sudo mkdir /Users/rathi/...` shim steps from flake-check and nix-format (Linux runner, paths don't exist, gitea-runner has no sudo) - deploy-netty now runs `sudo nixos-rebuild switch --flake .#netty` directly on the runner (it *is* netty), no SSH, no `just switch-netty` - grant gitea-runner NOPASSWD sudo for nixos-rebuild only - apply current nixfmt to home/scripts.nix, hermes-gateway.nix, devshells.nix Made-with: Cursor
This commit is contained in:
parent
ec2f23757b
commit
0aab0a4d61
5 changed files with 27 additions and 23 deletions
14
.github/workflows/quality.yml
vendored
14
.github/workflows/quality.yml
vendored
|
|
@ -37,11 +37,6 @@ jobs:
|
|||
if: ${{ needs.changes.outputs.quality == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Prepare local flake input shims
|
||||
run: |
|
||||
set -euo pipefail
|
||||
sudo mkdir -p /Users/rathi/Documents/GitHub/companion/agentcomputer/apps
|
||||
sudo ln -sfn "$GITHUB_WORKSPACE/ci/agentcomputer-cli-stub" /Users/rathi/Documents/GitHub/companion/agentcomputer/apps/cli
|
||||
- run: nix flake check
|
||||
|
||||
nix-format:
|
||||
|
|
@ -51,11 +46,6 @@ jobs:
|
|||
if: ${{ needs.changes.outputs.quality == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Prepare local flake input shims
|
||||
run: |
|
||||
set -euo pipefail
|
||||
sudo mkdir -p /Users/rathi/Documents/GitHub/companion/agentcomputer/apps
|
||||
sudo ln -sfn "$GITHUB_WORKSPACE/ci/agentcomputer-cli-stub" /Users/rathi/Documents/GitHub/companion/agentcomputer/apps/cli
|
||||
- run: nix fmt -- --ci
|
||||
|
||||
deploy-netty:
|
||||
|
|
@ -67,8 +57,8 @@ jobs:
|
|||
group: deploy-netty
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Deploy netty
|
||||
- name: Rebuild netty
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
just switch-netty
|
||||
sudo nixos-rebuild switch --flake ".#netty"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue