Skip to content
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

ensure AppVeyor builds in 64bits #169

Closed
pascalpoizat opened this issue Oct 10, 2018 · 3 comments · Fixed by #170
Closed

ensure AppVeyor builds in 64bits #169

pascalpoizat opened this issue Oct 10, 2018 · 3 comments · Fixed by #170
Labels
CI CI tools support; project CI; build with different GHC, tools Hacktoberfest https://hacktoberfest.digitalocean.com/ windows Windows system support

Comments

@pascalpoizat
Copy link
Contributor

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

@chshersh chshersh added CI CI tools support; project CI; build with different GHC, tools windows Windows system support labels Oct 11, 2018
@chshersh chshersh added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 11, 2018
@chshersh
Copy link
Contributor

@pascalpoizat Thanks for the issue submission! Changing generated appveyor.yml should be pretty straightforward 👍

@pascalpoizat
Copy link
Contributor Author

I am on it :-)

@pascalpoizat
Copy link
Contributor Author

Ok it works. I will enter details in the PR.

pascalpoizat added a commit to pascalpoizat/summoner that referenced this issue Oct 11, 2018
pascalpoizat added a commit to pascalpoizat/summoner that referenced this issue Oct 12, 2018
chshersh pushed a commit that referenced this issue Oct 12, 2018
…#170)

* fix: change appveyor config file to 64 bit (stack & generated binary)

closes #169

* docs: add documentation in CHANGELOG for issue #169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI tools support; project CI; build with different GHC, tools Hacktoberfest https://hacktoberfest.digitalocean.com/ windows Windows system support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants