circleci: Bump down thread count
[ghc.git] / appveyor.yml
1 version: "{build}"
2
3 build:
4   verbosity: normal
5
6 environment:
7   matrix:
8   - COMPILER: msys2
9     PLATFORM: x64
10     MSYS2_ARCH: x86_64
11     MSYS2_DIR: msys64
12     MSYSTEM: MINGW64
13     BIT: 64
14
15 os: Visual Studio 2015
16 deploy: off
17
18 install:
19   - cmd: |
20       SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
21       bash -lc "pacman --noconfirm -Syuu"
22       bash -lc "pacman --noconfirm -S --needed git tar bsdtar binutils autoconf make xz curl libtool automake python python2 p7zip patch mingw-w64-$(uname -m)-gcc mingw-w64-$(uname -m)-python3-sphinx mingw-w64-$(uname -m)-tools-git"
23       bash -lc "cd $APPVEYOR_BUILD_FOLDER; git config remote.origin.url git://github.com/ghc/ghc.git"
24       bash -lc "cd $APPVEYOR_BUILD_FOLDER; git config --global url.\"git://github.com/ghc/packages-\".insteadOf git://github.com/ghc/packages/"
25       bash -lc "cd $APPVEYOR_BUILD_FOLDER; git submodule init"
26       bash -lc "cd $APPVEYOR_BUILD_FOLDER; git submodule --quiet update --recursive"
27       bash -lc "curl -L https://downloads.haskell.org/~ghc/8.2.1/ghc-8.2.1-x86_64-unknown-mingw32.tar.xz | tar -xJ -C /mingw64 --strip-components=1"
28       bash -lc "mkdir -p /usr/local/bin"
29       bash -lc "curl -L https://www.haskell.org/cabal/release/cabal-install-1.24.0.0/cabal-install-1.24.0.0-x86_64-unknown-mingw32.zip | bsdtar -xzf- -C /usr/local/bin"
30       bash -lc "cabal update"
31       bash -lc "cabal install -j --prefix=/usr/local alex happy"
32
33 build_script:
34   - bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./boot"
35   - bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./configure --enable-tarballs-autodownload"
36   - bash -lc "cd $APPVEYOR_BUILD_FOLDER; make -j2"
37   - bash -lc "cd $APPVEYOR_BUILD_FOLDER; make binary_dist"
38     bash -lc "cd $APPVEYOR_BUILD_FOLDER; 7z a ghc-windows.zip *.tar.xz"
39
40 artifacts:
41   - path: C:\projects\ghc\ghc-windows.zip
42     name: GHC Windows bindist
43     type: zip