From 2eedfc3a919ae4f5078d0b3d28e5708f66135099 Mon Sep 17 00:00:00 2001 From: Pascal Poizat Date: Fri, 12 Oct 2018 15:09:29 +0200 Subject: [PATCH] fix: change appveyor config file to 64 bit (stack & generated binary) (#170) * fix: change appveyor config file to 64 bit (stack & generated binary) closes https://github.com/kowainik/summoner/issues/169 * docs: add documentation in CHANGELOG for issue #169 --- CHANGELOG.md | 2 ++ src/Summoner/Template.hs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cd72918..56edef12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ 1.2.0 ======= +* [#169](https://github.com/kowainik/summoner/issues/169): + Make AppVeyor use the 64bits version of stack and build for 64 bits. * [#154](https://github.com/kowainik/summoner/issues/154): * Add `Link` constructor to `Source` data type. diff --git a/src/Summoner/Template.hs b/src/Summoner/Template.hs index faeaef1a..a7de1d13 100644 --- a/src/Summoner/Template.hs +++ b/src/Summoner/Template.hs @@ -628,7 +628,7 @@ createProjectTemplate ProjectData{..} = Dir (toString repo) $ # http://help.appveyor.com/discussions/problems/6312-curl-command-not-found - set PATH=C:\Program Files\Git\mingw64\bin;%PATH% - - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386 + - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-x86_64 - 7z x stack.zip stack.exe clone_folder: "c:\\stack" @@ -640,5 +640,5 @@ createProjectTemplate ProjectData{..} = Dir (toString repo) $ - stack setup > nul # The ugly echo "" hack is to avoid complaints about 0 being an invalid file # descriptor - - echo "" | stack --no-terminal build --bench --no-run-benchmarks --test + - echo "" | stack --arch x86_64 --no-terminal build --bench --no-run-benchmarks --test |]