From ecef2b6bf1e49a62acf4b9baf9a927835fa03e91 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Wed, 5 Jun 2024 23:50:40 +0000 Subject: CI: Split attoconf and cmake artifacts Artifacts of the same name from different runs can overwrite each other. This makes sure that tests of the cmake pipeline actually test the cmake artifacts, and similarly for attoconf. --- .gitignore | 4 ++++ .gitlab-ci.yml | 23 ++++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index fdc00ac..34afd74 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,7 @@ # generic build /build/ + +# CI build +/build-atto/ +/build-cmake/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8b9374..f049110 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,8 +28,8 @@ re:ubuntu1804-attoconf:build: - git submodule update --init - git fetch -t - printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)" - - mkdir build - - cd build + - mkdir build-atto + - cd build-atto - ../configure --user - make - whoami @@ -50,8 +50,8 @@ re:ubuntu2204-attoconf:build: - git submodule update --init - git fetch -t - printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)" - - mkdir build - - cd build + - mkdir build-atto + - cd build-atto - ../configure --user - make - whoami @@ -72,8 +72,8 @@ re:ubuntu2204:build: - git submodule update --init - git fetch -t - printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)" - - mkdir build - - cd build + - mkdir build-cmake + - cd build-cmake - cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local .. - make - whoami @@ -90,34 +90,39 @@ re:ubuntu2204:build: <<: *prerequisites stage: test image: ubuntu:18.04 + needs: ["ubuntu1804-attoconf:build"] variables: <<: *base_vars INSTALL_PACKAGES: python3 gdb script: - printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)" - - cd build + - cd build-atto - make test + +# Enabled tests re:ubuntu2204-attoconf:test: <<: *prerequisites stage: test image: ubuntu:22.04 + needs: ["re:ubuntu2204-attoconf:build"] variables: <<: *base_vars INSTALL_PACKAGES: python3 gdb script: - printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)" - - cd build + - cd build-atto - make test re:ubuntu2204:test: <<: *prerequisites stage: test image: ubuntu:22.04 + needs: ["re:ubuntu2204:build"] variables: <<: *base_vars INSTALL_PACKAGES: python3 gdb script: - printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)" - - cd build + - cd build-cmake - make test -- cgit v1.2.3-70-g09d2