diff options
author | Ben Gamari <ben@smart-cactus.org> | 2018-12-16 11:30:30 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-12-17 12:44:49 -0500 |
commit | 554ffe9688a69d8866e6fa379860631d1b633342 (patch) | |
tree | 8c0faaf2e27849b81d1581b1fef400195f49db76 /.gitlab-ci.yml | |
parent | 22c2865ad5417b94ffd24ea55882722d7b5d19c4 (diff) | |
download | haskell-554ffe9688a69d8866e6fa379860631d1b633342.tar.gz |
gitlab-ci: Run Windows builds via make as well
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a48c195659..fd0afa7fbd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -233,10 +233,10 @@ validate-x86_64-linux-deb9-unreg: key: linux-x86_64-deb9 ############################################################ -# Validation via Pipelines (make, Windows) +# Validation via Pipelines (Windows) ############################################################ -validate-x86_64-windows: +validate-x86_64-windows-hadrian: stage: build variables: GHC_VERSION: "8.6.2" @@ -255,7 +255,7 @@ validate-x86_64-windows: - bash -c 'make V=0 -j`mk/detect-cpu-count.sh` HADDOCK_DOCS=NO test THREADS=$THREADS JUNIT_FILE=../../junit.xml' - cp -Rf $APPDATA/cabal cabal-cache cache: - key: windows + key: windows-hadrian paths: - cabal-cache - ghc-8.6.2 @@ -263,6 +263,28 @@ validate-x86_64-windows: tags: - x86_64-windows +validate-x86_64-windows: + stage: build + variables: + GHC_VERSION: "8.6.2" + script: + - bash -e .gitlab/win32-init.sh + - | + set MSYSTEM=MINGW64 + python boot + bash -c './configure --with-ghc=`pwd`/toolchain/bin/ghc --enable-tarballs-autodownload HappyCmd=`pwd`/toolchain/bin/happy AlexCmd=`pwd`/toolchain/bin/alex' + - bash -c "PATH=`pwd`/toolchain/bin:$PATH make -j`mk/detect-cpu-count.sh`" + - mv ghc-*.tar.xz ghc.tar.xz + - bash -c 'make V=0 -j`mk/detect-cpu-count.sh` HADDOCK_DOCS=NO test THREADS=$THREADS JUNIT_FILE=../../junit.xml' + - cp -Rf $APPDATA/cabal cabal-cache + cache: + key: windows + paths: + - cabal-cache + - ghc-8.6.2 + - ghc-tarballs + tags: + - x86_64-windows ############################################################ # Validation via CircleCI |