try system-path builder

This commit is contained in:
Daylin Morgan 2024-06-18 11:14:15 -05:00
parent 5004ce8353
commit d1cd4900b4
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 21 additions and 8 deletions

View file

@ -20,7 +20,6 @@ on:
default: 'othalan aligz'
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true
@ -34,7 +33,10 @@ jobs:
- uses: ./.github/actions/clean-disk
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/nix-installer-action@v12
with:
extra-conf: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15

View file

@ -8,12 +8,8 @@ on:
description: 'flake.lock file'
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true
jobs:
build:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -23,6 +19,9 @@ jobs:
purge-packages: false
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15
@ -38,4 +37,12 @@ jobs:
- name: Build
run: |
cachix watch-exec daylin -- nix build --accept-flake-config '.#checks.x86_64-linux.makePackages'
set -euo pipefail
# cachix watch-exec daylin -- nix build '.#checks.x86_64-linux.makePackages'
host=othalan
system_attr=$(nix run . -- output --host "$host" --flake .)
system_path=$(nix derivation show $system_attr | jq -r '.[].inputDrvs | with_entries(select(.key|match("system-path";"i"))) | keys | .[]')
echo "path to system-path drv ==> $system_path"
cachix watch-exec daylin -- nix build --print-build-logs "$system_path^*"

View file

@ -8,6 +8,10 @@ on:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true
jobs:
checks:
uses: ./.github/workflows/checks.yml