mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
try system-path builder
This commit is contained in:
parent
5004ce8353
commit
d1cd4900b4
3 changed files with 21 additions and 8 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
19
.github/workflows/checks.yml
vendored
19
.github/workflows/checks.yml
vendored
|
@ -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^*"
|
||||
|
||||
|
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue