| 1 | # All ubuntu-24.04 jobs should run successfully in an environment |
| 2 | # setup by the scripts/ci/setup/ubuntu/build-environment.yml task |
| 3 | # "Install basic packages to build QEMU on Ubuntu 24.04" |
| 4 | |
| 5 | .ubuntu_s390x_template: |
| 6 | extends: .custom_runner_template |
| 7 | needs: [] |
| 8 | stage: build |
| 9 | tags: |
| 10 | - ubuntu_24.04 |
| 11 | - s390x |
| 12 | rules: |
| 13 | - if: '$CI_PROJECT_NAMESPACE == $QEMU_CI_UPSTREAM && $CI_COMMIT_BRANCH =~ /^staging/' |
| 14 | - if: '$QEMU_CI != "1" && $QEMU_CI != "2" && $CI_PROJECT_NAMESPACE != $QEMU_CI_UPSTREAM' |
| 15 | when: never |
| 16 | - if: '$S390X_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule" && $QEMU_CI == "1"' |
| 17 | when: manual |
| 18 | - if: '$S390X_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule"' |
| 19 | before_script: |
| 20 | - source scripts/ci/gitlab-ci-section |
| 21 | - section_start setup "Pre-script setup" |
| 22 | - JOBS=$(expr $(nproc) - 1) |
| 23 | - section_end setup |
| 24 | script: |
| 25 | - mkdir build |
| 26 | - cd build |
| 27 | - section_start configure "Running configure" |
| 28 | - ../configure $CONFIGURE_ARGS || |
| 29 | { cat config.log meson-logs/meson-log.txt; exit 1; } |
| 30 | - section_end configure |
| 31 | - section_start build "Building QEMU" |
| 32 | - make --output-sync -j"$JOBS" |
| 33 | - section_end build |
| 34 | - section_start test "Running tests" |
| 35 | - if test -n "$MAKE_CHECK_ARGS"; |
| 36 | then |
| 37 | make -j"$JOBS" $MAKE_CHECK_ARGS ; |
| 38 | fi |
| 39 | - section_end test |
| 40 | |
| 41 | ubuntu-24.04-s390x-all-linux: |
| 42 | extends: .ubuntu_s390x_template |
| 43 | needs: [] |
| 44 | variables: |
| 45 | CONFIGURE_ARGS: --enable-debug --disable-system --disable-tools --disable-docs |
| 46 | MAKE_CHECK_ARGS: check-tcg check |
| 47 | |
| 48 | ubuntu-24.04-s390x-all-system: |
| 49 | extends: .ubuntu_s390x_template |
| 50 | needs: [] |
| 51 | variables: |
| 52 | CONFIGURE_ARGS: --disable-user |
| 53 | MAKE_CHECK_ARGS: check |
| 54 | allow_failure: true |
| 55 | |
| 56 | ubuntu-24.04-s390x-alldbg: |
| 57 | extends: .ubuntu_s390x_template |
| 58 | needs: [] |
| 59 | variables: |
| 60 | CONFIGURE_ARGS: --enable-debug |
| 61 | MAKE_CHECK_ARGS: check |
| 62 | allow_failure: true |
| 63 | when: manual |
| 64 | |
| 65 | ubuntu-24.04-s390x-clang: |
| 66 | extends: .ubuntu_s390x_template |
| 67 | needs: [] |
| 68 | variables: |
| 69 | CONFIGURE_ARGS: --cc=clang --cxx=clang++ --enable-ubsan |
| 70 | MAKE_CHECK_ARGS: check |
| 71 | allow_failure: true |
| 72 | when: manual |
| 73 | |
| 74 | ubuntu-24.04-s390x-tci: |
| 75 | extends: .ubuntu_s390x_template |
| 76 | needs: [] |
| 77 | variables: |
| 78 | CONFIGURE_ARGS: --enable-tcg-interpreter |
| 79 | allow_failure: true |
| 80 | when: manual |
| 81 | |
| 82 | ubuntu-24.04-s390x-notcg: |
| 83 | extends: .ubuntu_s390x_template |
| 84 | needs: [] |
| 85 | variables: |
| 86 | CONFIGURE_ARGS: --disable-tcg |
| 87 | MAKE_CHECK_ARGS: check |
| 88 | allow_failure: true |
| 89 | when: manual |