on master help sign in
Add a packdiff CI using the default executable
f81f8b5Adithya Kumar
.github/workflows/packdiff.ymlnew file+38
@@ -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)
.packcheck.ignore+2
@@ -2,6 +2,7 @@
2.ghci
2.ghci
3.github/workflows/haskell.yml
3.github/workflows/haskell.yml
4.github/workflows/regression-check.yml
4.github/workflows/regression-check.yml
5+.github/workflows/packdiff.yml
5.gitignore
6.gitignore
6.hlint.ignore
7.hlint.ignore
7.hlint.yaml
8.hlint.yaml
@@ -19,6 +20,7 @@ cabal.project.ghc-head
19cabal.project.hpc-coveralls
20cabal.project.hpc-coveralls
20cabal.project.O0
21cabal.project.O0
21cabal.project.report
22cabal.project.report
23+cabal.project.packdiff
22cabal.project.Werror
24cabal.project.Werror
23cabal.project.Werror-nocode
25cabal.project.Werror-nocode
24default.nix
26default.nix
cabal.project.packdiffnew file+23
@@ -0,0 +1,23 @@
1+packages:
2+ streamly.cabal
3+ core/streamly-core.cabal
4+
5+source-repository-package
6+ type: git
7+ location: https://github.com/composewell/packdiff.git
8+ tag: master
9+
10+source-repository-package
11+ type: git
12+ location: https://github.com/composewell/streamly-shell.git
13+ tag: master
14+
15+source-repository-package
16+ type: git
17+ location: https://github.com/composewell/streamly-coreutils.git
18+ tag: master
19+
20+source-repository-package
21+ type: git
22+ location: https://github.com/composewell/streamly-process.git
23+ tag: master