on ea224a4 help sign in
streamly/.github/workflows/packdiff.yml
38 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 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
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
29 - name: Checkout the current branch
30 uses: actions/checkout@v2
31 with:
32 fetch-depth: 0
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)
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)