@@ -0,0 +1,38 @@
1+name: Packdiff
2+
3+on: pull_request
4+
5+jobs:
6+ packdiff:
7+
8+ runs-on: ubuntu-latest
9+
10+ steps:
11+
12+ - name: Download ghc
13+ run: |
14+ curl -sL -o ./ghcup https://downloads.haskell.org/~ghcup/0.1.17.4/x86_64-linux-ghcup-0.1.17.4
15+ chmod +x ./ghcup
16+ GHCVER=8.10.7
17+ ./ghcup install ghc $GHCVER
18+ ./ghcup set ghc $GHCVER
19+ cabal update
20+
21+ - uses: actions/cache@v2
22+ name: Cache ~/.cabal
23+ with:
24+ path: |
25+ ~/.cabal
26+ # Bump the key version to clear the cache
27+ key: cache-v1
28+
29+ - name: Checkout the current branch
30+ uses: actions/checkout@v2
31+ with:
32+ fetch-depth: 0
33+
34+ - name: Run packdiff on streamly-core
35+ run: cabal run packdiff --project-file=cabal.project.packdiff -- streamly-core $(git rev-parse origin/master) $(git rev-parse HEAD)
36+
37+ - name: Run packdiff on streamly
38+ run: cabal run packdiff --project-file=cabal.project.packdiff -- streamly $(git rev-parse origin/master) $(git rev-parse HEAD)