-clone_folder: "c:\\new-hadrian"
-environment:
- global:
- STACK_ROOT: "c:\\sr"
-
-cache:
- - "c:\\sr -> appveyor.yml"
+version: "{build}"
+build_cloud: ghc-gce-cloud
+image: GHC-GCE
-install:
- # Get Stack
- - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
- - 7z x stack.zip stack.exe
+build:
+ verbosity: normal
- # Note: AppVeyor has already cloned Hadrian into c:\new-hadrian
- # Fetch GHC sources into c:\ghc
- - cd ..
- - git clone --recursive git://git.haskell.org/ghc.git
- # GHC comes with an older version of Hadrian, so we delete it
- - rm -rf ghc\hadrian
- # Copy new Hadrian into ./ghc/hadrian
- - cp -r new-hadrian ghc\hadrian
+environment:
+ matrix:
+ - COMPILER: msys2
+ PLATFORM: x64
+ MSYS2_ARCH: x86_64
+ MSYS2_DIR: msys64
+ MSYSTEM: MINGW64
+ BIT: 64
- # Install Alex and Happy
- - set PATH=C:\Users\appveyor\AppData\Roaming\local\bin;%PATH%
- - ghc\hadrian\stack install --install-ghc alex happy > nul
+deploy: off
- # Install all Hadrian and GHC build dependencies
- - cd ghc\hadrian
- - stack setup > nul
- - appveyor-retry stack exec -- pacman -S autoconf automake-wrapper make patch python3 tar --noconfirm
+install:
+ - cmd: |
+ SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
+ bash .appveyor.sh prepare
build_script:
- # Build GHC
- - cd ..
- - hadrian\build -c -j --flavour=quickest --integer-simple --no-progress --progress-colour=never --profile=-
+ - bash .appveyor.sh build
+ - bash .appveyor.sh test
- # Test GHC binary
- - _build\stage1\bin\ghc -e 1+2
+artifacts:
+ - path: ghc-windows.zip
+ name: GHC Windows bindist
+ type: zip