|
| 1 | +name: Common CI |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches-ignore: |
| 5 | + - 'dependabot**' |
| 6 | + tags: |
| 7 | + - '*' |
| 8 | + paths-ignore: |
| 9 | + - '**/lsan.supp' |
| 10 | + - 'buildScripts/travis/*' |
| 11 | + - 'buildScripts/azure/*' |
| 12 | + - 'buildScripts/docker/*' |
| 13 | + - 'azure-pipelines.yml' |
| 14 | + - '.cirrus.yml' |
| 15 | + - '.travis.yml' |
| 16 | + - '.mergify.yml' |
| 17 | + - 'Brewfile' |
| 18 | + - '**/*.html' |
| 19 | + - '**/*.txt' |
| 20 | + - '**/*.md' |
| 21 | + - 'installer/packages/**/meta/prebuild-mac.sh' |
| 22 | + - 'installer/packages/**/meta/prebuild-linux-gnu.sh' |
| 23 | + - '**/*.dockerfile' |
| 24 | + - '**/*.Dockerfile' |
| 25 | + - '**/Dockerfile' |
| 26 | + - '**/Dockerfile.*' |
| 27 | + - 'plugins/robots/checker/scripts/build-checker-installer.sh' |
| 28 | + - '.github/workflows/centos.yml' |
| 29 | + pull_request: |
| 30 | + branches-ignore: |
| 31 | + - 'dependabot**' |
| 32 | + workflow_dispatch: |
| 33 | + |
| 34 | +concurrency: |
| 35 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 36 | + cancel-in-progress: true |
| 37 | + |
| 38 | +jobs: |
| 39 | + lint: |
| 40 | + uses: ./.github/workflows/setup_environment.yml |
| 41 | + with: |
| 42 | + os: ubuntu-latest |
| 43 | + lint: true |
| 44 | + build: false |
| 45 | + build_installer: false |
| 46 | + |
| 47 | + build-macos-release-tests: |
| 48 | + needs: lint |
| 49 | + uses: ./.github/workflows/setup_environment.yml |
| 50 | + with: |
| 51 | + os: macos-13 |
| 52 | + build: true |
| 53 | + build_installer: false |
| 54 | + qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=no-sanitizers CONFIG+=warn_off" |
| 55 | + trik_python3_version_minor: 11 |
| 56 | + |
| 57 | + build-macos-debug-tests: |
| 58 | + needs: lint |
| 59 | + uses: ./.github/workflows/setup_environment.yml |
| 60 | + with: |
| 61 | + os: macos-13 |
| 62 | + build: true |
| 63 | + build_installer: false |
| 64 | + config: debug |
| 65 | + qmake_extra: "CONFIG+=warn_off CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=small_debug_info CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address" |
| 66 | + trik_python3_version_minor: 11 |
| 67 | + |
| 68 | + build-macos-installer: |
| 69 | + needs: [build-macos-debug-tests, build-macos-release-tests] |
| 70 | + uses: ./.github/workflows/setup_environment.yml |
| 71 | + with: |
| 72 | + os: macos-13 |
| 73 | + build: true |
| 74 | + build_installer: true |
| 75 | + qmake_extra: " CONFIG+=noPch CONFIG+=ccache CONFIG+=no-sanitizers CONFIG+=silent CONFIG+=warn_off" |
| 76 | + trik_python3_version_minor: 11 |
| 77 | + tests: true |
| 78 | + secrets: inherit |
| 79 | + |
| 80 | + install-macos-installer: |
| 81 | + needs: build-macos-installer |
| 82 | + uses: ./.github/workflows/installer.yml |
| 83 | + with: |
| 84 | + os: macos-13 |
| 85 | + artifact_name: macos-13-installer |
| 86 | + |
| 87 | + build-ubuntu-release-tests: |
| 88 | + needs: lint |
| 89 | + uses: ./.github/workflows/setup_environment.yml |
| 90 | + with: |
| 91 | + os: ubuntu-latest |
| 92 | + build: true |
| 93 | + build_installer: false |
| 94 | + qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=no-sanitizers" |
| 95 | + trik_python3_version_minor: 10 |
| 96 | + |
| 97 | + build-ubuntu-debug-tests: |
| 98 | + needs: lint |
| 99 | + uses: ./.github/workflows/setup_environment.yml |
| 100 | + with: |
| 101 | + os: ubuntu-latest |
| 102 | + build: true |
| 103 | + build_installer: false |
| 104 | + config: debug |
| 105 | + qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=small_debug_info CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address" |
| 106 | + trik_python3_version_minor: 10 |
| 107 | + |
| 108 | + build-altlinux-release-tests: |
| 109 | + needs: lint |
| 110 | + uses: ./.github/workflows/setup_environment.yml |
| 111 | + with: |
| 112 | + os: ubuntu-latest |
| 113 | + container_name: alt:latest |
| 114 | + build: true |
| 115 | + build_installer: false |
| 116 | + qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=no-sanitizers" |
| 117 | + tests: true |
| 118 | + |
| 119 | + build-rockylinux-distro-release-tests: |
| 120 | + needs: lint |
| 121 | + uses: ./.github/workflows/setup_environment.yml |
| 122 | + with: |
| 123 | + os: ubuntu-latest |
| 124 | + container_name: rockylinux:8 |
| 125 | + build: true |
| 126 | + build_installer: false |
| 127 | + qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=sanitizer CONFIG+=sanitize-undefined" |
| 128 | + gcc_version: 13 |
| 129 | + shell: bash -l {0} |
| 130 | + trik_python3_version_minor: 11 |
| 131 | + |
| 132 | + # Use Python 3.11, as the Python 3.12 package in Rocky Linux AppStream x86_64 crashes |
| 133 | + # with a segmentation fault when restarting the interpreter during the import of asyncio |
| 134 | + # (specifically when loading _ssl) in PythonQt::init(). |
| 135 | + build-rockylinux-installer-release-tests: |
| 136 | + needs: lint |
| 137 | + uses: ./.github/workflows/setup_environment.yml |
| 138 | + with: |
| 139 | + os: ubuntu-latest |
| 140 | + container_name: rockylinux:8 |
| 141 | + build: true |
| 142 | + build_installer: false |
| 143 | + qmake_extra: "CONFIG+=tests CONFIG+=noPch CONFIG+=ccache CONFIG+=sanitizer CONFIG+=sanitize-undefined CONFIG+=sanitize_address" |
| 144 | + gcc_version: 13 |
| 145 | + trik_qt_version: 5.15 |
| 146 | + trik_python3_version_minor: 11 |
| 147 | + linux_installer_environment: true |
| 148 | + shell: bash -l {0} |
| 149 | + |
| 150 | + build-rockylinux-installer: |
| 151 | + needs: [build-rockylinux-installer-release-tests] |
| 152 | + uses: ./.github/workflows/setup_environment.yml |
| 153 | + with: |
| 154 | + os: ubuntu-latest |
| 155 | + container_name: rockylinux:8 |
| 156 | + build: true |
| 157 | + build_installer: true |
| 158 | + tests: true |
| 159 | + qmake_extra: "CONFIG+=noPch CONFIG+=ccache CONFIG+=no-sanitizers CONFIG+=warn_off" |
| 160 | + gcc_version: 13 |
| 161 | + trik_qt_version: 5.15 |
| 162 | + trik_python3_version_minor: 11 |
| 163 | + linux_installer_environment: true |
| 164 | + shell: bash -l {0} |
| 165 | + secrets: inherit |
| 166 | + |
| 167 | + install-ubuntu-installer: |
| 168 | + needs: [build-rockylinux-installer] |
| 169 | + uses: ./.github/workflows/installer.yml |
| 170 | + with: |
| 171 | + os: ubuntu-latest |
| 172 | + artifact_name: ubuntu-latest-installer |
| 173 | + |
| 174 | + install-ubuntu-installer-1-concurrency: |
| 175 | + needs: [build-rockylinux-installer] |
| 176 | + uses: ./.github/workflows/installer.yml |
| 177 | + with: |
| 178 | + os: ubuntu-latest |
| 179 | + artifact_name: ubuntu-latest-installer |
| 180 | + concurrency: 1 |
| 181 | + |
| 182 | + install-rockylinux-installer: |
| 183 | + needs: [build-rockylinux-installer] |
| 184 | + uses: ./.github/workflows/installer.yml |
| 185 | + with: |
| 186 | + os: ubuntu-latest |
| 187 | + container_name: rockylinux:8 |
| 188 | + artifact_name: ubuntu-latest-installer |
| 189 | + |
| 190 | + install-altlinux-installer: |
| 191 | + needs: [build-rockylinux-installer] |
| 192 | + uses: ./.github/workflows/installer.yml |
| 193 | + with: |
| 194 | + os: ubuntu-latest |
| 195 | + container_name: alt:latest |
| 196 | + artifact_name: ubuntu-latest-installer |
| 197 | + |
| 198 | + install-archlinux-installer: |
| 199 | + needs: [build-rockylinux-installer] |
| 200 | + uses: ./.github/workflows/installer.yml |
| 201 | + with: |
| 202 | + os: ubuntu-latest |
| 203 | + container_name: archlinux:latest |
| 204 | + artifact_name: ubuntu-latest-installer |
0 commit comments