summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-10 15:58:39 -0500
committerSeth Flynn <[email protected]>2025-02-10 20:26:23 -0500
commitdd618800566a51365411683f9a4c789923cdc874 (patch)
tree88aa89284542c265a564a81a3e7bdffc7ac27916 /.github/workflows
parentcd21ca8e9894f7d8dbe7628952c6345174c3eb15 (diff)
flake: use checks for CI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yaml21
1 files changed, 8 insertions, 13 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index cd6cee7..e9bddd9 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -22,9 +22,6 @@ jobs:
runs-on: ${{ matrix.os }}
- env:
- SYSTEM: ${{ matrix.system }}
-
steps:
# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
- name: Clear disk space
@@ -48,24 +45,22 @@ jobs:
name: getchoo
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- - name: Run build
+ - name: Run checks
run: |
- nix run --inputs-from . \
- github:Mic92/nix-fast-build -- \
- --no-nom \
- --skip-cached \
- --option allow-import-from-derivation false \
- --flake ".#hydraJobs.$SYSTEM"
+ nix flake check \
+ --print-build-logs \
+ --show-trace
build-gate:
name: Build gate
if: ${{ always() }}
- needs: build
+ needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Exit with error
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
- run: exit 1
+ if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
+ run: |
+ exit 1