-
Notifications
You must be signed in to change notification settings - Fork 66
39 lines (30 loc) · 1.04 KB
/
packdiff.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
name: Packdiff
on: pull_request
jobs:
packdiff:
runs-on: ubuntu-latest
steps:
- name: Download ghc
run: |
GHCUP_VER=0.1.20.0
curl -sL -o ./ghcup https://downloads.haskell.org/~ghcup/$GHCUP_VER/x86_64-linux-ghcup-$GHCUP_VER
chmod +x ./ghcup
GHCVER=9.8.1
./ghcup install ghc $GHCVER
./ghcup set ghc $GHCVER
cabal update
- uses: actions/cache@v2
name: Cache ~/.cabal
with:
path: |
~/.cabal
# Bump the key version to clear the cache
key: cache-v2
- name: Checkout the current branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run packdiff on streamly-core
run: cabal run packdiff --project-file=cabal.project.packdiff -- diff streamly-core $(git rev-parse origin/master) streamly-core $(git rev-parse HEAD)
- name: Run packdiff on streamly
run: cabal run packdiff --project-file=cabal.project.packdiff -- diff streamly $(git rev-parse origin/master) streamly $(git rev-parse HEAD)