Skip to content

Commit

Permalink
GHC-8.10 support for 3.2
Browse files Browse the repository at this point in the history
Includes cherry-picked commits:

- Test cabal-install with GHC-8.10 haskell#6709
- Add GHC-8.10.1 job. Only tests Cabal-the-lib part atm. haskell#6617

Also add topHandler' signature.
  • Loading branch information
phadej committed Apr 14, 2020
1 parent 329ebb1 commit f186253
Show file tree
Hide file tree
Showing 33 changed files with 313 additions and 178 deletions.
60 changes: 60 additions & 0 deletions .docker/validate-8.10.1.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
FROM phadej/ghc:8.10.1-bionic

# Install cabal-plan
RUN mkdir -p /root/.cabal/bin && \
curl -L https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz && \
echo "de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz" | sha256sum -c - && \
xz -d < cabal-plan.xz > /root/.cabal/bin/cabal-plan && \
rm -f cabal-plan.xz && \
chmod a+x /root/.cabal/bin/cabal-plan

# Update index
RUN cabal v2-update

# We install happy, so it's in the store; we (hopefully) don't use it directly.
RUN cabal v2-install happy --constraint 'happy ^>=1.19.12'

# Install some other dependencies
# Remove $HOME/.ghc so there aren't any environments
RUN cabal v2-install -w ghc-8.10.1 --lib \
aeson \
async \
base-compat \
base16-bytestring \
base64-bytestring \
cryptohash-sha256 \
Diff \
echo \
ed25519 \
edit-distance \
haskell-lexer \
HTTP \
network \
optparse-applicative \
pretty-show \
regex-compat-tdfa \
regex-tdfa \
statistics \
tar \
tasty \
tasty-golden \
tasty-hunit \
tasty-quickcheck \
tree-diff \
zlib \
--constraint="bytestring installed" \
--constraint="binary installed" \
--constraint="containers installed" \
--constraint="deepseq installed" \
--constraint="directory installed" \
--constraint="filepath installed" \
--constraint="pretty installed" \
--constraint="process installed" \
--constraint="time installed" \
--constraint="unix installed" \
&& rm -rf $HOME/.ghc

# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -w ghc-8.10.1 -v
9 changes: 4 additions & 5 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
branches:
- master
- "3.2"
release:
types:
- created
Expand All @@ -25,7 +24,7 @@ jobs:
echo "::add-path::$HOME/.cabal/bin"
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Release project
run: |
cp cabal.project.release cabal.project
Expand Down Expand Up @@ -71,7 +70,7 @@ jobs:
echo "::add-path::$HOME/.cabal/bin"
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Release project
run: |
cp cabal.project.release cabal.project
Expand Down Expand Up @@ -115,7 +114,7 @@ jobs:
cabal user-config init -a "http-transport: plain-http" -a "store-dir: C:\SR" -f -v3
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Release project
shell: bash
run: |
Expand All @@ -125,7 +124,7 @@ jobs:
shell: bash
run: |
cabal v2-build cabal-install:exe:cabal
cp dist-newstyle/build/x86_64-windows/ghc-8.6.5/cabal-install-3.2.0.0/build/cabal/cabal.exe cabal.exe
cp dist-newstyle/build/x86_64-windows/ghc-8.6.5/cabal-install-3.3.0.0/x/cabal/build/cabal/cabal.exe cabal.exe
- name: Smoke test
shell: bash
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
pull_request:
branches:
- master
- "3.2"
release:
types:
- created
Expand All @@ -26,7 +25,7 @@ jobs:
- name: Set PATH
run: |
echo "::add-path::/opt/ghc/8.6.5/bin"
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: bootstrap.sh
env:
EXTRA_CONFIGURE_OPTS: ""
Expand All @@ -53,7 +52,7 @@ jobs:
run: |
echo "::add-path::/opt/ghc/8.6.5/bin"
echo "::add-path::$HOME/.cabal/bin"
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: bootstrap.sh
env:
EXTRA_CONFIGURE_OPTS: ""
Expand Down
Loading

0 comments on commit f186253

Please sign in to comment.