Template for a clang task.

This commit is contained in:
Roman Telezhynskyi 2023-02-15 11:26:20 +02:00
parent 75e3e5b7b8
commit 1222f8bdbe

View File

@ -38,7 +38,7 @@ linux_qt6_task_template: &LINUX_QT6_TASK_TEMPLATE
- which qbs - which qbs
- pwd - pwd
#- ${COMPILER} --version #- ${COMPILER} --version
- ls -l /usr/bin/ | grep ${COMPILER} - ls -l /usr/bin/ | grep -E "${COMPILER_BIN}"
- qmake6 --version - qmake6 --version
- qbs --version - qbs --version
- qbs setup-toolchains --detect - qbs setup-toolchains --detect
@ -62,7 +62,7 @@ linux_qt5_qmake_task_template: &LINUX_QT5_QMAKE_TASK_TEMPLATE
- cd build - cd build
- pwd - pwd
#- ${COMPILER} --version #- ${COMPILER} --version
- ls -l /usr/bin/ | grep ${COMPILER} - ls -l /usr/bin/ | grep -E "${COMPILER_BIN}"
- qmake --version - qmake --version
- qmake ../Valentina.pro -r -spec linux-${COMPILER} CONFIG+=noDebugSymbols CONFIG+=checkWarnings - qmake ../Valentina.pro -r -spec linux-${COMPILER} CONFIG+=noDebugSymbols CONFIG+=checkWarnings
- make -j$(nproc) - make -j$(nproc)
@ -82,7 +82,7 @@ linux_qt5_qbs_task_template: &LINUX_QT5_QBS_TASK_TEMPLATE
- which qbs - which qbs
- pwd - pwd
#- ${COMPILER} --version #- ${COMPILER} --version
- ls -l /usr/bin/ | grep ${COMPILER} - ls -l /usr/bin/ | grep -E "${COMPILER_BIN}"
- qmake --version - qmake --version
- qbs --version - qbs --version
- qbs setup-toolchains --detect - qbs setup-toolchains --detect
@ -159,6 +159,7 @@ task:
COMPILER: g++ COMPILER: g++
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2 TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2
COMPILER_BIN: "gcc|g\+\+"
task: task:
name: 'latest GCC [Qt5 QBS]' name: 'latest GCC [Qt5 QBS]'
@ -170,6 +171,7 @@ task:
COMPILER: gcc COMPILER: gcc
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2 TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2
COMPILER_BIN: "gcc|g\+\+"
task: task:
name: 'latest GCC [Qt6]' name: 'latest GCC [Qt6]'
@ -181,33 +183,29 @@ task:
COMPILER: gcc COMPILER: gcc
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2 TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2
COMPILER_BIN: "gcc|g\+\+"
linux_clang_task_template: &LINUX_CLANG_TASK_TEMPLATE
container:
image: dismine/clang-ubuntu:latest
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
env:
COMPILER: clang
COMPILER_BIN: clang
TOOLCHAIN: clang-16
task: task:
name: 'latest Clang [Qt5 QMake]' name: 'latest Clang [Qt5 QMake]'
container: << : *LINUX_CLANG_TASK_TEMPLATE
image: dismine/clang-ubuntu:latest
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
<< : *LINUX_QT5_QMAKE_TASK_TEMPLATE << : *LINUX_QT5_QMAKE_TASK_TEMPLATE
env:
COMPILER: clang
TOOLCHAIN: clang-16
task: task:
name: 'latest Clang [Qt5 QBS]' name: 'latest Clang [Qt5 QBS]'
container: << : *LINUX_CLANG_TASK_TEMPLATE
image: dismine/clang-ubuntu:latest
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
<< : *LINUX_QT5_QBS_TASK_TEMPLATE << : *LINUX_QT5_QBS_TASK_TEMPLATE
env:
COMPILER: clang
TOOLCHAIN: clang-16
task: task:
name: 'latest Clang [Qt6]' name: 'latest Clang [Qt6]'
container: << : *LINUX_CLANG_TASK_TEMPLATE
image: dismine/clang-ubuntu:latest
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
<< : *LINUX_QT6_TASK_TEMPLATE << : *LINUX_QT6_TASK_TEMPLATE
env:
COMPILER: clang
TOOLCHAIN: clang-16