on master help sign in
Add a packdiff CI using the default executable
commitf81f8b5bf3a501300d7f49c21993cc56226b14ee authorAdithya Kumar <adithya@composewell.com> dateTue 24 May 2022, 06:15 (4 years ago) parentd4c2098
3 files changed+63
.github/workflows/packdiff.yml+38 .packcheck.ignore+2 cabal.project.packdiff+23
.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 @@
22.ghci
33.github/workflows/haskell.yml
44.github/workflows/regression-check.yml
5+.github/workflows/packdiff.yml
56.gitignore
67.hlint.ignore
78.hlint.yaml
@@ -19,6 +20,7 @@ cabal.project.ghc-head
1920cabal.project.hpc-coveralls
2021cabal.project.O0
2122cabal.project.report
23+cabal.project.packdiff
2224cabal.project.Werror
2325cabal.project.Werror-nocode
2426default.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