chore: Just evaluate instead of building artificats for CI
This commit is contained in:
committed by
Hunter Halloran
parent
a23ec91c9c
commit
a06525f6fa
@@ -4,8 +4,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
pull_request:
|
||||
pull_request_review:
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -15,6 +15,7 @@ jobs:
|
||||
flake-check:
|
||||
name: Flake Check
|
||||
runs-on: [self-hosted, nix-builder]
|
||||
needs: [format-check]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -59,8 +60,8 @@ jobs:
|
||||
nix eval .#nixosConfigurations.${{ matrix.config }}.config.system.build.toplevel.drvPath \
|
||||
--show-trace
|
||||
|
||||
build-artifacts:
|
||||
name: Build Artifacts
|
||||
eval-artifacts:
|
||||
name: Evaluate Artifacts
|
||||
runs-on: [self-hosted, nix-builder]
|
||||
needs: [flake-check, format-check]
|
||||
strategy:
|
||||
@@ -73,18 +74,8 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build artifact
|
||||
- name: Evaluate artifact
|
||||
run: |
|
||||
echo "Building artifact ${{ matrix.artifact }}"
|
||||
nix build .#${{ matrix.artifact }} \
|
||||
--print-build-logs \
|
||||
echo "Evaluating artifact ${{ matrix.artifact }}"
|
||||
nix eval .#${{ matrix.artifact }}.drvPath \
|
||||
--show-trace
|
||||
|
||||
- name: Show build result
|
||||
run: |
|
||||
if [ -L result ]; then
|
||||
ls -lh result/
|
||||
if [ -d result/iso ]; then
|
||||
ls -lh result/iso/
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user