mirror of
https://github.com/composewell/streamly.git
synced 2024-09-11 11:37:22 +03:00
Add a packdiff CI using the default executable
This commit is contained in:
parent
d4c20981e6
commit
f81f8b5bf3
38
.github/workflows/packdiff.yml
vendored
Normal file
38
.github/workflows/packdiff.yml
vendored
Normal 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)
|
@ -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
23
cabal.project.packdiff
Normal 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
|
Loading…
Reference in New Issue
Block a user