diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 81a7cc249dd9a3e96eceb33d570f6bc37cce557a..79b5e368faf9159e82046530605f70e3c94baedb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,9 +6,9 @@ stages:
 build-job:
   stage: build
   script:
-    - stack build --install-ghc
+    - stack build
     - mkdir dist
-    - cp .stack-work/install/x86_64-linux-tinfo6/*/*/bin/walint dist
+    - stack install --local-bin-path dist
     - cp config.json dist
   artifacts:
     paths: