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' default: 'othalan aligz'
type: string type: string
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }} group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true cancel-in-progress: true
@ -34,7 +33,10 @@ jobs:
- uses: ./.github/actions/clean-disk - 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: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15 - uses: cachix/cachix-action@v15

View file

@ -8,12 +8,8 @@ on:
description: 'flake.lock file' description: 'flake.lock file'
type: string type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true
jobs: jobs:
build: checks:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -23,6 +19,9 @@ jobs:
purge-packages: false purge-packages: false
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v7 - uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15 - uses: cachix/cachix-action@v15
@ -38,4 +37,12 @@ jobs:
- name: Build - name: Build
run: | 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: branches:
- main - main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true
jobs: jobs:
checks: checks:
uses: ./.github/workflows/checks.yml uses: ./.github/workflows/checks.yml