Add a packdiff CI using the default executable

This commit is contained in:
Adithya Kumar 2022-05-24 06:15:05 +05:30
parent d4c20981e6
commit f81f8b5bf3
3 changed files with 63 additions and 0 deletions

38
.github/workflows/packdiff.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Packdiff
on: pull_request
jobs:
packdiff:
runs-on: ubuntu-latest
steps:
- name: Download ghc
run: |
curl -sL -o ./ghcup https://downloads.haskell.org/~ghcup/0.1.17.4/x86_64-linux-ghcup-0.1.17.4
chmod +x ./ghcup
GHCVER=8.10.7
./ghcup install ghc $GHCVER
./ghcup set ghc $GHCVER
cabal update
- uses: actions/cache@v2
name: Cache ~/.cabal
with:
path: |
~/.cabal
# Bump the key version to clear the cache
key: cache-v1
- name: Checkout the current branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run packdiff on streamly-core
run: cabal run packdiff --project-file=cabal.project.packdiff -- streamly-core $(git rev-parse origin/master) $(git rev-parse HEAD)
- name: Run packdiff on streamly
run: cabal run packdiff --project-file=cabal.project.packdiff -- streamly $(git rev-parse origin/master) $(git rev-parse HEAD)

View File

@ -2,6 +2,7 @@
.ghci
.github/workflows/haskell.yml
.github/workflows/regression-check.yml
.github/workflows/packdiff.yml
.gitignore
.hlint.ignore
.hlint.yaml
@ -19,6 +20,7 @@ cabal.project.ghc-head
cabal.project.hpc-coveralls
cabal.project.O0
cabal.project.report
cabal.project.packdiff
cabal.project.Werror
cabal.project.Werror-nocode
default.nix

23
cabal.project.packdiff Normal file
View File

@ -0,0 +1,23 @@
packages:
streamly.cabal
core/streamly-core.cabal
source-repository-package
type: git
location: https://github.com/composewell/packdiff.git
tag: master
source-repository-package
type: git
location: https://github.com/composewell/streamly-shell.git
tag: master
source-repository-package
type: git
location: https://github.com/composewell/streamly-coreutils.git
tag: master
source-repository-package
type: git
location: https://github.com/composewell/streamly-process.git
tag: master