Skip to content

Commit

Permalink
ci: Use CERN registry cache in GitLab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Jan 10, 2025
1 parent d6eb834 commit bafe5d5
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variables:

clang_tidy:
stage: build
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
tags:
- large
artifacts:
Expand Down Expand Up @@ -71,7 +71,7 @@ clang_tidy:

build_exatrkx_cpu:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand Down Expand Up @@ -104,7 +104,7 @@ build_exatrkx_cpu:

build_exatrkx:
stage: build
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand Down Expand Up @@ -146,7 +146,7 @@ test_exatrkx_unittests:
stage: test
needs:
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand All @@ -165,7 +165,7 @@ test_exatrkx_python:
stage: test
needs:
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2204_exatrkx:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_exatrkx:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
tags:
Expand All @@ -188,7 +188,7 @@ test_exatrkx_python:

build_linux_ubuntu:
stage: build
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst

Expand Down Expand Up @@ -226,9 +226,30 @@ build_linux_ubuntu:
- cmake --build build -- -j6
- ccache -s

- 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
-DCMAKE_CXX_FLAGS=-Werror
-DCMAKE_CXX_STANDARD=${CXXSTD}
-DCMAKE_PREFIX_PATH="${INSTALL_DIR}"
# Downstream build
- cmake --build build-downstream

# Downstream run
- ./build-downstream/bin/ShowActsVersion

linux_test_examples:
stage: test
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst
needs: [build_linux_ubuntu]
Expand All @@ -252,7 +273,7 @@ linux_test_examples:

linux_physmon:
stage: test
image: ghcr.io/acts-project/ubuntu2404:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2404:63
variables:
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-24.04/deps.$DEPENDENCY_TAG.tar.zst
needs: [build_linux_ubuntu]
Expand Down Expand Up @@ -347,22 +368,22 @@ linux_ubuntu_2204:
variables:
CXXSTD: 20
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
image: ghcr.io/acts-project/ubuntu2204:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204:63

linux_ubuntu_2204_clang:
extends: .linux_ubuntu_extra
variables:
CXXSTD: 20
DEPENDENCY_URL: https://acts.web.cern.ch/ACTS/ci/ubuntu-22.04/deps.$DEPENDENCY_TAG.tar.zst
image: ghcr.io/acts-project/ubuntu2204_clang:63
image: registry.cern.ch/ghcr.io/acts-project/ubuntu2204_clang:63


######################
### LCG JOB MATRIX ###
######################

.lcg_base_job:
image: ghcr.io/acts-project/${OS}-base:63
image: registry.cern.ch/ghcr.io/acts-project/${OS}-base:63
stage: build
tags:
- cvmfs
Expand Down

0 comments on commit bafe5d5

Please sign in to comment.