mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 07:04:47 +00:00
ci: use self-hosted netty runners for flake check and format
This commit is contained in:
parent
9e289a1b66
commit
8b4d5afcde
1 changed files with 3 additions and 8 deletions
11
.github/workflows/quality.yml
vendored
11
.github/workflows/quality.yml
vendored
|
|
@ -11,7 +11,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changes:
|
changes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, netty]
|
||||||
outputs:
|
outputs:
|
||||||
quality: ${{ steps.filter.outputs.quality }}
|
quality: ${{ steps.filter.outputs.quality }}
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -32,30 +32,25 @@ jobs:
|
||||||
|
|
||||||
flake-check:
|
flake-check:
|
||||||
name: Flake Check
|
name: Flake Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, netty]
|
||||||
needs: changes
|
needs: changes
|
||||||
if: ${{ needs.changes.outputs.quality == 'true' }}
|
if: ${{ needs.changes.outputs.quality == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Prepare local flake input shims
|
- name: Prepare local flake input shims
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# The repo currently depends on a local path flake input for agentcomputer-cli.
|
|
||||||
sudo mkdir -p /Users/rathi/Documents/GitHub/companion/agentcomputer/apps
|
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
|
sudo ln -sfn "$GITHUB_WORKSPACE/ci/agentcomputer-cli-stub" /Users/rathi/Documents/GitHub/companion/agentcomputer/apps/cli
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
|
|
||||||
nix-format:
|
nix-format:
|
||||||
name: Nix Format Check
|
name: Nix Format Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, netty]
|
||||||
needs: changes
|
needs: changes
|
||||||
if: ${{ needs.changes.outputs.quality == 'true' }}
|
if: ${{ needs.changes.outputs.quality == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
- name: Prepare local flake input shims
|
- name: Prepare local flake input shims
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue