Skip to content

Commit

Permalink
ci: Reduce expiry time for GitLab artifacts (acts-project#2822)
Browse files Browse the repository at this point in the history
Also removes trailing whitespace in the gitlab configuration.
  • Loading branch information
paulgessinger authored and LaraCalic committed Feb 10, 2024
1 parent 55f9427 commit f292664
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ clang_tidy:
paths:
- src/clang-tidy/
when: always
expire_in: 2 weeks
expire_in: 1 week
script:
- git clone $CLONE_URL src
- git clone $CLONE_URL src
- cd src
- git checkout $HEAD_SHA
- >
apt-get update
&& apt-get install -y g++-8 libstdc++-8-dev parallel software-properties-common
&& apt-get install -y g++-8 libstdc++-8-dev parallel software-properties-common
&& curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add
&& add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main'
&& apt-get install -y clang-17 clang-tidy-17
&& ln -s /usr/bin/clang++-17 /usr/bin/clang++
&& ln -s /usr/bin/clang-17 /usr/bin/clang
&& ln -s /usr/bin/clang-tidy-17 /usr/bin/clang-tidy
&& mkdir -p /opt/lib/gcc/x86_64-linux-gnu
&& ln -s /usr/lib/gcc/x86_64-linux-gnu/8/ /opt/lib/gcc/x86_64-linux-gnu/
&& ln -s /usr/lib/gcc/x86_64-linux-gnu/8/ /opt/lib/gcc/x86_64-linux-gnu/
&& clang++ --gcc-toolchain=/opt -v
- >
cmake -B build -S .
Expand All @@ -48,9 +48,9 @@ clang_tidy:

# Parse the main clang-tidy run
- >
CI/clang_tidy/parse_clang_tidy.py
clang-tidy/clang-tidy.log
clang-tidy/clang-tidy.json
CI/clang_tidy/parse_clang_tidy.py
clang-tidy/clang-tidy.log
clang-tidy/clang-tidy.json
--exclude "*thirdparty*"
--exclude "*ActsPodioEdm*"
Expand All @@ -77,6 +77,7 @@ build_exatrkx:
exclude:
- build/**/*.o
- build/bin/ActsIntegrationTest*
expire_in: 6 hours

script:
- export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
Expand Down Expand Up @@ -153,6 +154,7 @@ build_linux_ubuntu:
- build/bin/ActsUnitTest*
- build/bin/ActsIntegrationTest*
- build/**/*.o
expire_in: 1 day

script:
- echo $PATH
Expand All @@ -172,7 +174,7 @@ build_linux_ubuntu:
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_CXX_STANDARD=17
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON
-DACTS_BUILD_EVERYTHING=ON
-DACTS_BUILD_ODD=ON
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON
Expand Down Expand Up @@ -222,6 +224,7 @@ linux_physmon:
when: always
paths:
- src/physmon
expire_in: 1 week

script:
- apt-get update && apt-get install -y git-lfs
Expand Down Expand Up @@ -279,7 +282,7 @@ linux_physmon:
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_CXX_STANDARD=${CXXSTD}
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON
-DACTS_BUILD_EVERYTHING=ON
-DACTS_BUILD_ODD=ON
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON
Expand All @@ -294,12 +297,12 @@ linux_physmon:

- ctest --test-dir build -j$(nproc)
- cmake --build build --target integrationtests

# Install main project
- cmake --install build

# Downstream configure
- >
- >
cmake -B build-downstream -S src/Tests/DownstreamProject
-GNinja
-DCMAKE_BUILD_TYPE=Release
Expand Down Expand Up @@ -345,7 +348,7 @@ linux_ubuntu_2204_clang:
variables:
INSTALL_DIR: ${{ github.workspace }}/install

SETUP:
SETUP:

cache:
key: ccache-${CI_JOB_NAME_SLUG}-${HEAD_REF}-${CCACHE_KEY_SUFFIX}
Expand All @@ -359,27 +362,27 @@ linux_ubuntu_2204_clang:

# Figure out LCG platform name based on version number and OS
- >
if [ "$OS" = "alma9" ]; then
if [ "$LCG_VERSION" = "104" ]; then
if [ "$OS" = "alma9" ]; then
if [ "$LCG_VERSION" = "104" ]; then
export LCG_PLATFORM="el9"
else
export LCG_PLATFORM="centos9"
fi
else
else
export LCG_PLATFORM="$OS"
fi
- 'echo "LCG_PLATFORM: ${LCG_PLATFORM}"'
- source /cvmfs/sft.cern.ch/lcg/views/LCG_${LCG_VERSION}/x86_64-${LCG_PLATFORM}-${COMPILER}-opt/setup.sh

- git clone $CLONE_URL src

- cd src
- git checkout $HEAD_SHA
- git submodule init
- git submodule update
- cd ..

- ccache --version

script:
Expand Down Expand Up @@ -443,8 +446,6 @@ lcg_104:
parallel:
matrix:
- OS: [alma9]
COMPILER:
COMPILER:
- gcc13
- clang16


0 comments on commit f292664

Please sign in to comment.