-
Notifications
You must be signed in to change notification settings - Fork 237
42 lines (36 loc) · 892 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches-ignore:
- _**
pull_request:
workflow_dispatch:
merge_group:
defaults:
run:
shell: bash
jobs:
build:
name: build
uses: ./.github/workflows/build-ci.yml
tests:
name: tests
needs: build
uses: ./.github/workflows/tests.yml
# Disabled as it takes too long without the magic nix cache.
# nix-build:
# name: nix
# uses: ./.github/workflows/nix.yml
# Branch protection points here
ciok:
runs-on: ubuntu-latest
if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }}
# ^ Workaround for insane github behavior: https://github.com/actions/runner/issues/2566
needs:
- build
- tests
# - nix-build
steps:
# Note: we only run on failure. Otherwise this is skipped, which counts
# as a success.
- run: exit 1