Skip to content

Use GitHub Actions #6469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docker/validate-7.6.3.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ RUN cabal v2-install -w ghc-7.6.3 --lib \
# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -l -w ghc-7.6.3 -v
RUN sh ./validate.sh --lib-only -w ghc-7.6.3 -v
2 changes: 1 addition & 1 deletion .docker/validate-7.8.4.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ RUN cabal v2-install -w ghc-7.8.4 --lib \
# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -l -w ghc-7.8.4 -v
RUN sh ./validate.sh --lib-only -w ghc-7.8.4 -v
9 changes: 8 additions & 1 deletion .docker/validate-8.8.1.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ RUN mkdir -p /root/.cabal/bin && \
rm -f cabal-plan.xz && \
chmod a+x /root/.cabal/bin/cabal-plan

# install cabal-env
RUN curl -sL https://github.com/phadej/cabal-extras/releases/download/preview-20191225/cabal-env-snapshot-20191225-x86_64-linux.xz > cabal-env.xz && \
echo "1b567d529c5f627fd8c956e57ae8f0d9f11ee66d6db34b7fb0cb1c370b4edf01 cabal-env.xz" | sha256sum -c - && \
xz -d < cabal-env.xz > $HOME/.cabal/bin/cabal-env && \
rm -f cabal-env.xz && \
chmod a+x $HOME/.cabal/bin/cabal-env

# Update index
RUN cabal v2-update

Expand Down Expand Up @@ -49,4 +56,4 @@ RUN cabal v2-install -w ghc-8.8.1 --lib \
# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -w ghc-8.8.1 -v -D -b
RUN sh ./validate.sh -w ghc-8.8.1 -v --doctest --solver-benchmarks
55 changes: 55 additions & 0 deletions .docker/validate-old.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM phadej/ghc:8.8.1-xenial

# 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

# Install older compilers
RUN apt-get update
RUN apt-get install -y ghc-7.0.4 ghc-7.0.4-dyn ghc-7.2.2 ghc-7.2.2-dyn ghc-7.4.2 ghc-7.4.2-dyn

# 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.8.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 \
resolv \
statistics \
tar \
tasty \
tasty-golden \
tasty-hunit \
tasty-quickcheck \
tree-diff \
zlib \
&& rm -rf $HOME/.ghc

# Validate
WORKDIR /build
COPY . /build
RUN sh ./validate.sh -w ghc-8.8.1 -v --lib-only --extra-hc /opt/ghc/7.0.4/bin/ghc-7.0.4 --extra-hc /opt/ghc/7.2.2/bin/ghc-7.2.2 --extra-hc /opt/ghc/7.4.2/bin/ghc-7.4.2
Loading