diff options
-rw-r--r-- | .gitlab-ci.yml | 8 | ||||
-rwxr-xr-x | .gitlab/ci.sh | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d56997fe3..6f2083e608 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -627,14 +627,18 @@ test-bootstrap: - popd - rm -Rf test-bootstrap variables: - TEST_ENV: "x86_64-linux-deb10-hadrian" + # Don't record performance benchmarks + TEST_ENV: "" BIN_DIST_NAME: "ghc-x86_64-deb10-linux" BUILD_FLAVOUR: "validate" NO_BOOT: "1" rules: - if: $NIGHTLY - - if: '$RELEASE_JOB == "yes"' - if: '$CI_MERGE_REQUEST_LABELS =~ /.*test-bootstrap.*/' + - if: '$RELEASE_JOB == "yes"' + when: always + variables: + BUILD_FLAVOUR: "release" ############################################################ diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh index 42c487bf0c..b23def26ea 100755 --- a/.gitlab/ci.sh +++ b/.gitlab/ci.sh @@ -457,7 +457,11 @@ function fetch_perf_notes() { } function push_perf_notes() { - if [ -n "${CROSS_TARGET:-}" ]; then + if [[ -z "${TEST_ENV:-}" ]]; then + return + fi + + if [[ -n "${CROSS_TARGET:-}" ]]; then info "Can't test cross-compiled build." return fi |