summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-22 16:47:06 -0400
committerseth <[email protected]>2024-05-22 16:21:31 -0600
commitd49db6e7118ac34b18d32b59bba6785eb716a004 (patch)
tree345c8db76b0c9acb52bd176245137142fbe87b3e /.github/workflows
parentf30d81b8028ed1c13d076ed7069312a5ddf592a6 (diff)
ci: add build gate
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 61e71d1..b6fbdc2 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -61,6 +61,20 @@ jobs:
--option allow-import-from-derivation false \
--flake '.#packages'
+ build-gate:
+ name: Build gate
+
+ if: ${{ always() }}
+
+ needs: build
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Exit with error
+ if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
+ run: exit 1
+
check:
name: Check flake