Skip to content

Commit

Permalink
ci: Fix ccache usage in GitLab CI job (#2050)
Browse files Browse the repository at this point in the history
Also renames the exatrkx jobs to include the name explicitly.
  • Loading branch information
paulgessinger committed Apr 21, 2023
1 parent cc1f276 commit 263114d
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variables:
CCACHE_DIR: ${CI_PROJECT_DIR}/ccache
CCACHE_MAXSIZE: 10G
CCACHE_KEY_SUFFIX: r1

clang_tidy:
stage: build
image: ghcr.io/acts-project/ubuntu2004:v41
Expand Down Expand Up @@ -53,20 +58,16 @@ clang_tidy:
# Generate an html report
- codereport clang-tidy/clang-tidy.json clang-tidy/html

build:
build_exatrkx:
stage: build
image: ghcr.io/acts-project/ubuntu2004_exatrkx:v41
tags:
- docker
variables:
CCACHE_DIR: ${CI_PROJECT_DIR}/ccache
CCACHE_MAXSIZE: 10G
CCACHE_KEY_SUFFIX: r1

cache:
key: ccache-exatrkx-$CI_COMMIT_REF_SLUG
key: ccache-exatrkx-${HEAD_REF}-${CCACHE_KEY_SUFFIX}
paths:
- ${CI_PROJECT_DIR}/ccache_${CCACHE_KEY_SUFFIX}
- ${CCACHE_DIR}

artifacts:
paths:
Expand Down Expand Up @@ -97,12 +98,15 @@ build:
-DACTS_EXATRKX_ENABLE_ONNX=ON
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON
-DACTS_ENABLE_LOG_FAILURE_THRESHOLD=ON
- ccache -z
- cmake --build build --
- ccache -s

test:
test_exatrkx:
stage: test
needs:
- build
- build_exatrkx
image: ghcr.io/acts-project/ubuntu2004_exatrkx:v41
tags:
- docker-gpu-nvidia
Expand All @@ -117,3 +121,4 @@ test:
- pip3 install -r Examples/Python/tests/requirements.txt
- nvidia-smi
- pytest -rFsv -k test_exatrkx

0 comments on commit 263114d

Please sign in to comment.