Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
obsidiansystems
GHC
Commits
55fc269f
Commit
55fc269f
authored
Mar 05, 2019
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-ci: Implement support for i386/Windows bindists
parent
6113d0d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
14 deletions
+63
-14
.gitlab-ci.yml
.gitlab-ci.yml
+50
-13
.gitlab/win32-init.sh
.gitlab/win32-init.sh
+13
-1
No files found.
.gitlab-ci.yml
View file @
55fc269f
...
...
@@ -395,7 +395,7 @@ release-x86_64-linux-fedora27:
# Validation via Pipelines (Windows)
############################################################
.
validate
-windows
:
.
build
-windows
:
before_script
:
-
git clean -xdf
-
git submodule foreach git clean -xdf
...
...
@@ -421,29 +421,26 @@ release-x86_64-linux-fedora27:
dependencies
:
[]
variables
:
FORCE_SYMLINKS
:
1
LANG
:
"
en_US.UTF-8"
cache
:
paths
:
-
cabal-cache
-
ghc-8.6.2
-
ghc-tarballs
validate-x86_64
-windows-hadrian
:
extends
:
.
validate
-windows
.build
-windows-hadrian
:
extends
:
.
build
-windows
stage
:
full-build
variables
:
GHC_VERSION
:
"
8.6.2"
LANG
:
"
en_US.UTF-8"
script
:
-
|
set MSYSTEM=MINGW64
python boot
bash -c './configure --enable-tarballs-autodownload GHC=`pwd`/toolchain/bin/ghc HAPPY=`pwd`/toolchain/bin/happy ALEX=`pwd`/toolchain/bin/alex'
-
bash -c "PATH=`pwd`/toolchain/bin:$PATH hadrian/build.cabal.sh -j`mk/detect-cpu-count.sh` --flavour=Quick --docs=no-sphinx binary-dist"
-
mv _build/bindist/ghc*.tar.xz ghc.tar.xz
# FIXME: Testsuite disabled due to #16156.
# - bash -c 'make V=0 test THREADS=`mk/detect-cpu-count.sh` JUNIT_FILE=../../junit.xml'
cache
:
key
:
x86_64-windows
tags
:
-
x86_64-windows
artifacts
:
...
...
@@ -451,36 +448,76 @@ validate-x86_64-windows-hadrian:
paths
:
-
ghc.tar.xz
validate-x86_64-windows
:
extends
:
.validate-windows
validate-x86_64-windows-hadrian
:
extends
:
.build-windows-hadrian
variables
:
MSYSTEM
:
MINGW64
cache
:
key
:
x86_64-windows-hadrian
nightly-i386-windows-hadrian
:
extends
:
.build-windows-hadrian
variables
:
MSYSTEM
:
MINGW32
only
:
variables
:
-
$NIGHTLY
cache
:
key
:
i386-windows-hadrian
.build-windows-make
:
extends
:
.build-windows
stage
:
full-build
# due to #16084
allow_failure
:
true
variables
:
GHC_VERSION
:
"
8.6.2"
LANG
:
"
en_US.UTF-8"
BIN_DIST_PREP_TAR_COMP
:
"
bindistprep/ghc-x86_64-mingw32.tar.xz"
script
:
-
|
set MSYSTEM=MINGW64
python boot
bash -c './configure --enable-tarballs-autodownload GHC=`pwd`/toolchain/bin/ghc HAPPY=`pwd`/toolchain/bin/happy ALEX=`pwd`/toolchain/bin/alex'
-
bash -c "echo include mk/flavours/quick.mk > mk/build.mk"
-
bash -c "PATH=`pwd`/toolchain/bin:$PATH make -j`mk/detect-cpu-count.sh`"
-
bash -c "PATH=`pwd`/toolchain/bin:$PATH make binary-dist TAR_COMP_OPTS=-1"
-
bash -c 'make V=0 test THREADS=`mk/detect-cpu-count.sh` JUNIT_FILE=../../junit.xml'
cache
:
key
:
x86_64-windows
tags
:
-
x86_64-windows
artifacts
:
when
:
always
expire_in
:
2 week
reports
:
junit
:
junit.xml
paths
:
-
ghc-*.tar.xz
-
junit.xml
validate-x86_64-windows
:
extends
:
.build-windows-make
variables
:
MSYSTEM
:
MINGW64
cache
:
key
:
x86_64-windows
release-i386-windows
:
extends
:
.build-windows-make
only
:
-
tags
variables
:
MSYSTEM
:
MINGW32
cache
:
key
:
i386-windows
nightly-i386-windows
:
extends
:
.build-windows-make
only
:
variables
:
-
$NIGHTLY
variables
:
MSYSTEM
:
MINGW32
cache
:
key
:
i386-windows
############################################################
# Cleanup
############################################################
...
...
.gitlab/win32-init.sh
View file @
55fc269f
...
...
@@ -10,7 +10,19 @@ if [ -d "`pwd`/cabal-cache" ]; then
fi
if
[
!
-e
$toolchain
/bin/ghc
]
;
then
curl https://downloads.haskell.org/~ghc/
$GHC_VERSION
/ghc-
$GHC_VERSION
-x86_64-unknown-mingw32
.tar.xz |
tar
-xJ
case
$MSYSTEM
in
MINGW32
)
triple
=
"i386-unknown-mingw32"
;;
MINGW64
)
triple
=
"x86_64-unknown-mingw32"
;;
*
)
echo
"win32-init: Unknown MSYSTEM
$MSYSTEM
"
exit
1
;;
esac
curl https://downloads.haskell.org/~ghc/
$GHC_VERSION
/ghc-
$GHC_VERSION
-
$triple
.tar.xz |
tar
-xJ
mv
ghc-
$GHC_VERSION
toolchain
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment