mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
CI: Reduce artifact size, cache clang-tidy, fix test retry, throttle QEMU
libeigen/eigen!2305 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -44,3 +44,9 @@ checkformat:clangtidy:
|
||||
-DEIGEN_BUILD_TESTING=ON
|
||||
- chmod +x ci/scripts/run-clang-tidy.sh
|
||||
- ci/scripts/run-clang-tidy.sh ${CI_MERGE_REQUEST_DIFF_BASE_SHA} .tidy-build
|
||||
cache:
|
||||
key: clang-tidy-config
|
||||
paths:
|
||||
- .tidy-build/compile_commands.json
|
||||
- .tidy-build/CMakeCache.txt
|
||||
- .tidy-build/CMakeFiles/
|
||||
|
||||
@@ -21,7 +21,11 @@
|
||||
name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- ${EIGEN_CI_BUILDDIR}/
|
||||
expire_in: 5 days
|
||||
exclude:
|
||||
- ${EIGEN_CI_BUILDDIR}/**/*.o
|
||||
- ${EIGEN_CI_BUILDDIR}/**/.ninja_log
|
||||
- ${EIGEN_CI_BUILDDIR}/**/.ninja_deps
|
||||
expire_in: 2 days
|
||||
|
||||
# Base configuration for Windows builds and tests.
|
||||
.common:windows:
|
||||
@@ -37,4 +41,8 @@
|
||||
name: "$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_NAME"
|
||||
paths:
|
||||
- ${EIGEN_CI_BUILDDIR}/
|
||||
expire_in: 5 days
|
||||
exclude:
|
||||
- ${EIGEN_CI_BUILDDIR}/**/*.obj
|
||||
- ${EIGEN_CI_BUILDDIR}/**/.ninja_log
|
||||
- ${EIGEN_CI_BUILDDIR}/**/.ninja_deps
|
||||
expire_in: 2 days
|
||||
|
||||
@@ -16,6 +16,7 @@ fi
|
||||
set +x
|
||||
|
||||
EIGEN_CI_CTEST_PARALLEL=${EIGEN_CI_CTEST_PARALLEL:-${NPROC}}
|
||||
EIGEN_CI_CTEST_REPEAT=${EIGEN_CI_CTEST_REPEAT:-3}
|
||||
ctest_cmd="ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${EIGEN_CI_CTEST_PARALLEL} --output-on-failure --no-compress-output --build-noclean ${target}"
|
||||
|
||||
echo "Running initial tests..."
|
||||
|
||||
@@ -307,6 +307,7 @@ test:linux:cuda-13.1:nvhpc-26.1:
|
||||
EIGEN_CI_TARGET_ARCH: arm
|
||||
EIGEN_CI_CROSS_TARGET_TRIPLE: arm-linux-gnueabihf
|
||||
EIGEN_CI_CTEST_ARGS: --timeout 2000
|
||||
EIGEN_CI_CTEST_PARALLEL: "4"
|
||||
|
||||
.test:linux:arm:gcc-10:default:
|
||||
extends: .test:linux:arm
|
||||
@@ -391,6 +392,7 @@ test:linux:aarch64:clang-12:default:unsupported:
|
||||
EIGEN_CI_TARGET_ARCH: ppc64le
|
||||
EIGEN_CI_CROSS_TARGET_TRIPLE: powerpc64le-linux-gnu
|
||||
EIGEN_CI_CTEST_ARGS: --timeout 2000
|
||||
EIGEN_CI_CTEST_PARALLEL: "4"
|
||||
|
||||
.test:linux:ppc64le:gcc-14:default:
|
||||
extends: .test:linux:ppc64le
|
||||
@@ -434,6 +436,7 @@ test:linux:ppc64le:clang-16:default:unsupported:
|
||||
EIGEN_CI_CROSS_TARGET_TRIPLE: loongarch64-linux-gnu
|
||||
EIGEN_CI_CROSS_INSTALL: g++-14-loongarch64-linux-gnu qemu-user-static
|
||||
EIGEN_CI_CTEST_ARGS: --timeout 2000
|
||||
EIGEN_CI_CTEST_PARALLEL: "4"
|
||||
|
||||
# GCC-14 (Ubuntu 24)
|
||||
.test:linux:loongarch64:gcc-14:default:
|
||||
|
||||
Reference in New Issue
Block a user