on ed37c19 help sign in
streamly/.github/workflows/packdiff.yml
39 lines 1.0 kB history raw
1name: Packdiff
3on: pull_request
5jobs:
6 packdiff:
8 runs-on: ubuntu-latest
10 steps:
12 - name: Download ghc
13 run: |
14 GHCUP_VER=0.1.18.0
15 curl -sL -o ./ghcup https://downloads.haskell.org/~ghcup/$GHCUP_VER/x86_64-linux-ghcup-$GHCUP_VER
16 chmod +x ./ghcup
17 GHCVER=8.10.7
18 ./ghcup install ghc $GHCVER
19 ./ghcup set ghc $GHCVER
20 cabal update
22 - uses: actions/cache@v2
23 name: Cache ~/.cabal
24 with:
25 path: |
26 ~/.cabal
27 # Bump the key version to clear the cache
28 key: cache-v2
30 - name: Checkout the current branch
31 uses: actions/checkout@v2
32 with:
33 fetch-depth: 0
35 - name: Run packdiff on streamly-core
36 run: cabal run packdiff --project-file=cabal.project.packdiff -- streamly-core $(git rev-parse origin/master) $(git rev-parse HEAD)
38 - name: Run packdiff on streamly
39 run: cabal run packdiff --project-file=cabal.project.packdiff -- streamly $(git rev-parse origin/master) $(git rev-parse HEAD)