-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (47 loc) · 1.22 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: ci
on:
pull_request:
push:
paths-ignore:
- '**.md'
defaults:
run:
shell: bash
jobs:
pre_job:
uses: ./.github/workflows/pre_job.yml
stack:
needs: pre_job
if: ${{ needs.pre_job.outputs.run_it == 'true' }}
uses: ./.github/workflows/stack.yml
secrets: inherit
with:
cache: v3
cabal-install:
needs: pre_job
if: ${{ needs.pre_job.outputs.run_it == 'true' }}
uses: ./.github/workflows/cabal-install.yml
with:
cache: v3
# via-action:
# needs: pre_job
# if: ${{ needs.pre_job.outputs.run_it == 'true' }}
# uses: ./.github/workflows/via-action.yml
# secrets: inherit
static-executable-for-linux:
needs: pre_job
if: ${{ needs.pre_job.outputs.run_it == 'true' }}
uses: ./.github/workflows/static-executable.yml
container-image:
needs: static-executable-for-linux
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: ./.github/workflows/container-image.yml
secrets: inherit
release:
needs:
- stack
- cabal-install
- static-executable-for-linux
if: startsWith(github.ref, 'refs/tags')
uses: ./.github/workflows/release.yml
secrets: inherit