Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sheaf
GHC
Commits
5fb57236
Commit
5fb57236
authored
3 years ago
by
Zubin
Committed by
sheaf
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: test bootstrapping and use hadrian for source dists
parent
bf046206
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+30
-11
30 additions, 11 deletions
.gitlab-ci.yml
.gitlab/ci.sh
+10
-7
10 additions, 7 deletions
.gitlab/ci.sh
with
40 additions
and
18 deletions
.gitlab-ci.yml
+
30
−
11
View file @
5fb57236
...
...
@@ -1239,27 +1239,46 @@ doc-tarball:
source-tarball
:
stage
:
packaging
needs
:
[
validate-x86_64-linux-deb9-unreg-hadrian
]
tags
:
-
x86_64-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
dependencies
:
[]
rules
:
-
if
:
'
$RELEASE_JOB
==
"yes"'
when
:
always
artifacts
:
paths
:
-
ghc-*.tar.xz
-
version
-
hadrian-bootstrap-sources-*.tar.gz
script
:
-
python3 mk/get-win32-tarballs.py download all
-
./boot
-
./configure
-
make sdist
-
mv sdistprep/*.xz .
-
make show! --quiet VALUE=ProjectVersion > version
-
source version
-
echo "$ProjectVersion" > version
-
./hadrian/build source-dist
-
mv _build/source-dist/*.xz .
-
python3 ./hadrian/bootstrap/bootstrap.py -w $GHC fetch -o hadrian-bootstrap-sources-$GHC_VERSION
test-bootstrap
:
stage
:
packaging
needs
:
[
source-tarball
]
tags
:
-
x86_64-linux
image
:
"
registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb10:$DOCKER_REV"
dependencies
:
[
source-tarball
]
script
:
-
mkdir test-bootstrap
-
tar -xf ghc-*[0-9]-src.tar.xz -C test-bootstrap
-
tar -xf ghc-*-testsuite.tar.xz -C test-bootstrap
-
cp hadrian-bootstrap-sources-*.tar.gz test-bootstrap/ghc-*
-
pushd test-bootstrap/ghc-*
-
python3 ./hadrian/bootstrap/bootstrap.py -w $GHC --bootstrap-sources hadrian-bootstrap-sources-*.tar.gz
-
export HADRIAN_PATH="$PWD/_build/bin/hadrian"
-
.gitlab/ci.sh setup
-
.gitlab/ci.sh configure
-
.gitlab/ci.sh build_hadrian
-
.gitlab/ci.sh test_hadrian
-
popd
-
rm -Rf test-bootstrap
variables
:
TEST_ENV
:
"
x86_64-linux-deb10-hadrian"
BIN_DIST_NAME
:
"
ghc-x86_64-deb10-linux"
BUILD_FLAVOUR
:
"
validate"
############################################################
...
...
This diff is collapsed.
Click to expand it.
.gitlab/ci.sh
+
10
−
7
View file @
5fb57236
...
...
@@ -581,13 +581,16 @@ function run_hadrian() {
if
[
-z
"
${
BIGNUM_BACKEND
:-}
"
]
;
then
BIGNUM_BACKEND
=
"gmp"
;
fi
read
-r
-a
args
<<<
"
${
HADRIAN_ARGS
:-}
"
if
[
-n
"
${
VERBOSE
:-}
"
]
;
then
args+
=(
"-V"
)
;
fi
run hadrian/build-cabal
\
--flavour
=
"
$BUILD_FLAVOUR
"
\
-j
"
$cores
"
\
--broken-test
=
"
${
BROKEN_TESTS
:-}
"
\
--bignum
=
$BIGNUM_BACKEND
\
"
${
args
[@]+
"
${
args
[@]
}
"
}
"
\
"
$@
"
# Before running the compiler, unset variables gitlab env vars as these
# can destabilise the performance test (see #20341)
(
unset
$(
compgen
-v
|
grep
CI_
*
)
;
run
"
${
HADRIAN_PATH
:-
hadrian
/build-cabal
}
"
\
--flavour
=
"
$BUILD_FLAVOUR
"
\
-j
"
$cores
"
\
--broken-test
=
"
${
BROKEN_TESTS
:-}
"
\
--bignum
=
$BIGNUM_BACKEND
\
"
${
args
[@]+
"
${
args
[@]
}
"
}
"
\
"
$@
"
)
}
# A convenience function to allow debugging in the CI environment.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment