Commit 5d815dd6 authored by Christopher League's avatar Christopher League 🖥

GitLab CI: Attempt to cache both ~/.stack and ./.stack-work

parent f6cb626e
Pipeline #533 passed with stage
in 57 minutes and 7 seconds
image: league/haskell-stack:20180605
# Here are two problems we're trying to solve with this before_script:
# The libnss3 seems to fix the network issue.
# Also, we can't force stack to use system-ghc if its version doesn't
# match what the resolver wants. So to download and install a GHC, we
# need build-essential.
- echo USER IS $(whoami)
- echo HOME IS $HOME
- ls -l /
- mkdir -p /cache/root-stack
- ln -s /cache/root-stack /root/.stack
# For some reason, just `stack` uses the old version, so explicitly
# ask for the new one from ~/.local:
- echo Fake build
- echo PWD is $(pwd)
- mkdir .stack-work
- touch .stack-work/SAVED
- stack build
# After you've edited this file, remove the following line to allow
# `yesod keter` to build your bundle.
user-edited: false
user-edited: true
# A Keter app is composed of 1 or more stanzas. The main stanza will define our
# web application. See the Keter documentation for more information on
......@@ -55,7 +55,7 @@ stanzas:
# Use the following to automatically copy your bundle upon creation via `yesod
# keter`. Uses `scp` internally, so you can set it to a remote destination
# copy-to: user@host:/opt/keter/incoming/
# You can pass arguments to `scp` used above. This example limits bandwidth to
# 1024 Kbit/s and uses port 2222 instead of the default 22
Markdown is supported
Finish editing this message first!
Please register or to comment