feat: Configure CI to run on self-hosted nix-builder runner

Co-authored-by: Jyumpp <11142390+Jyumpp@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-17 15:14:34 +00:00
committed by Hunter Halloran
parent 631e1a4037
commit be575d4898
2 changed files with 12 additions and 47 deletions

View File

@@ -14,41 +14,21 @@ permissions:
jobs:
flake-check:
name: Flake Check
runs-on: ubuntu-latest
runs-on: [self-hosted, nix-builder]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake
run: nix flake check --show-trace --print-build-logs
format-check:
name: Format Check
runs-on: ubuntu-latest
runs-on: [self-hosted, nix-builder]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check formatting
run: |
nix fmt **/*.nix
@@ -60,7 +40,7 @@ jobs:
build-configs:
name: Build Key Configurations
runs-on: ubuntu-latest
runs-on: [self-hosted, nix-builder]
strategy:
matrix:
config:
@@ -72,16 +52,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build configuration
run: |
echo "Building configuration for ${{ matrix.config }}"
@@ -91,7 +61,7 @@ jobs:
build-artifacts:
name: Build Artifacts
runs-on: ubuntu-latest
runs-on: [self-hosted, nix-builder]
strategy:
matrix:
artifact:
@@ -102,16 +72,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = nix-command flakes
accept-flake-config = true
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build artifact
run: |
echo "Building artifact ${{ matrix.artifact }}"