Skip to content

Commit 85c30b4

Browse files
authored
Merge pull request #451 from kokobd/ci-post-job
add post jobs to github workflows
2 parents a5bf840 + 2280ff8 commit 85c30b4

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,14 @@ jobs:
4949
- if: matrix.ghc == '8.10.7' && runner.os == 'Linux'
5050
name: Build using stack
5151
run: stack build
52+
53+
haskell_post_job:
54+
runs-on: ubuntu-latest
55+
needs: [ build ]
56+
steps:
57+
- run: |
58+
echo "jobs info: ${{ toJSON(needs) }}"
59+
- if: contains(needs.*.result, 'failure')
60+
run: exit 1
61+
- if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true'
62+
run: exit 1

.github/workflows/nix.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ jobs:
1919
with:
2020
nix_path: nixpkgs=channel:nixos-unstable
2121
- run: nix-shell --run "cabal update && cabal build all"
22+
nix_post_job:
23+
runs-on: ubuntu-latest
24+
needs: [ nix ]
25+
steps:
26+
- run: |
27+
echo "jobs info: ${{ toJSON(needs) }}"
28+
- if: contains(needs.*.result, 'failure')
29+
run: exit 1
30+
- if: contains(needs.*.result, 'cancelled') && needs.pre_job.outputs.should_skip != 'true'
31+
run: exit 1

cabal.project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ tests: True
1010
benchmarks: True
1111
test-show-details: direct
1212
haddock-quickjump: True
13+
14+
-- https://github.com/TomMD/entropy/issues/75
15+
constraints: entropy < 0.4.1.9

0 commit comments

Comments
 (0)