-clone_folder: "C:\\msys64\\home\\ghc\\hadrian"
-environment:
- global:
- STACK_ROOT: "c:\\sr"
+version: "{build}"
+build_cloud: ghc-gce-cloud
+image: GHC-GCE
-cache:
- - "c:\\sr"
+build:
+ verbosity: normal
-install:
- - cd
- - set MSYSTEM=MINGW64
- - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\msys64;%PATH%
- - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\local\bin\;%APPVEYOR_BUILD_FOLDER%
- - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
- - 7z x stack.zip stack.exe
- - bash -lc "curl -LsS http://www.haskell.org/ghc/dist/7.10.3/ghc-7.10.3-x86_64-unknown-mingw32.tar.xz | tar -xJ -C /mingw64 --strip-components=1"
- - stack exec -- pacman -S --noconfirm gcc binutils p7zip git
- - echo "" | stack --no-terminal install alex happy shake ansi-terminal mtl
+environment:
+ matrix:
+ - COMPILER: msys2
+ PLATFORM: x64
+ MSYS2_ARCH: x86_64
+ MSYS2_DIR: msys64
+ MSYSTEM: MINGW64
+ BIT: 64
- - git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
- - git config --global url."http://github.com/ghc/packages-".insteadOf http://github.com/ghc/packages/
- - git config --global url."https://github.com/ghc/packages-".insteadOf https://github.com/ghc/packages/
- - git config --global url."ssh://git@github.com/ghc/packages-".insteadOf ssh://git@github.com/ghc/packages/
- - git config --global url."git@github.com:/ghc/packages-".insteadOf git@github.com:/ghc/packages/
- - git clone https://github.com/ghc/ghc --recurse-submodules --depth 1 C:\msys64\home\ghc\tmp
+deploy: off
- - ghc --version
- - stack --version
- - alex --version
- - happy --version
- - stack exec -- ghc-pkg list
- - bash -lc "mv /home/ghc/tmp/* /home/ghc"
- - cd C:\msys64\home\ghc
- - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/mingw-w64/x86_64/"
- - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/perl/"
+install:
+ - cmd: |
+ SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
+ bash .appveyor.sh prepare
build_script:
- - cd C:\msys64\home\ghc\hadrian
- - echo "" | stack --no-terminal exec -- build.bat selftest
- - echo "" | stack --no-terminal exec -- build.bat -j --verbose --no-progress --progress-colour=never --profile=- --flavour=quick inplace/bin/ghc-stage1.exe
+ - bash .appveyor.sh build
+ - bash .appveyor.sh test
+
+artifacts:
+ - path: ghc-windows.zip
+ name: GHC Windows bindist
+ type: zip