From 56dbcd3697e786763a6fc0acb4c5fea4f9b2abcd Mon Sep 17 00:00:00 2001 From: Pierre Blanchard Date: Wed, 2 Jul 2025 12:15:29 +0000 Subject: [PATCH] Run CI tests on x86_64 too --- .gitlab-ci.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df63160..5145ee9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,23 +1,26 @@ --- default: image: ubuntu:22.04 - tags: - - arm64-shared before_script: - apt update --yes - apt install --yes build-essential gcc cmake curl libgmp-dev libmpfr-dev libssl-dev build: stage: build + parallel: + matrix: + - TAGS: [arm64-shared, intel-ubuntu22.04-shared] + tags: + - $TAGS artifacts: untracked: true paths: - - _build-native/ - - _install-native/ + - _build-native-$TAGS/ + - _install-native-$TAGS/ script: - | - cmake -S . -B _build-native \ - -DCMAKE_INSTALL_PREFIX=$(pwd)/_install-native \ + cmake -S . -B _build-native-$TAGS \ + -DCMAKE_INSTALL_PREFIX=$(pwd)/_install-native-$TAGS \ -DCMAKE_TOOLCHAIN_FILE=$(pwd)/toolchains/native-gcc.cmake \ -DSLEEF_SHOW_CONFIG=ON \ -DSLEEF_BUILD_GNUABI_LIBS=ON \ @@ -28,18 +31,23 @@ build: -DSLEEF_BUILD_STATIC_TEST_BINS=ON \ -DSLEEF_ENFORCE_TESTER=ON \ -DSLEEF_ENFORCE_TESTER3=ON - - cmake --build _build-native - - cmake --install _build-native + - cmake --build _build-native-$TAGS + - cmake --install _build-native-$TAGS rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "push" test: stage: test + parallel: + matrix: + - TAGS: [arm64-shared, intel-ubuntu22.04-shared] + tags: + - $TAGS dependencies: - build script: - - cd _build-native + - cd _build-native-$TAGS - ctest -j$(nproc) rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" -- GitLab