Skip to content

ensure AppVeyor builds in 64bits #169

Closed
@pascalpoizat

Description

There is a bug with the builds under Windows, see here:

The result is builds in AppVeyor failing with error -1073741819 .
It seems that the bug could be solved in a future version of GHC.
Meanwhile, a solution seems to force using 64bits version of stack and have stack build for 64bits too.

The solution corresponds to changing:

build: off

before_test:
# 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
- 7z x stack.zip stack.exe

clone_folder: "c:\\stack"
environment:
  global:
    STACK_ROOT: "c:\\sr"

test_script:
- 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

into

build: off

before_test:
# 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 https://www.stackage.org/stack/windows-x86_64
- 7z x stack.zip stack.exe

clone_folder: "c:\\stack"
environment:
  global:
    STACK_ROOT: "c:\\sr"

test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --arch x86_64 --no-terminal build --bench --no-run-benchmarks --test

in the generated appveyor.yml

Metadata

Assignees

No one assigned

    Labels

    CICI tools support; project CI; build with different GHC, toolsHacktoberfesthttps://hacktoberfest.digitalocean.com/windowsWindows system support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions