forked from stack-of-tasks/pinocchio
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci-private.yml
More file actions
37 lines (34 loc) · 933 Bytes
/
.gitlab-ci-private.yml
File metadata and controls
37 lines (34 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# use docker image with pixi installed (and not much else)
image: ghcr.io/prefix-dev/pixi:noble
variables:
GIT_SUBMODULE_STRATEGY: recursive
PIXI_ENV: "collision"
CMAKE_BUILD_PARALLEL_LEVEL: 2
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
CCACHE_DIR: "${CI_PROJECT_DIR}/.ccache"
CCACHE_COMPRESS: true
CCACHE_COMPRESSLEVEL: 6
test-job:
stage: test
tags:
- large
cache:
# Cache .pixi directory, invalidate the cache on lockfile
- key:
files:
- pixi.lock
paths:
- .pixi/
# Cache .ccache directory for each branch
- key: ccache-$CI_COMMIT_REF_SLUG
fallback_keys:
- ccache-$CI_DEFAULT_BRANCH
paths:
- .ccache/
script:
- echo "ccache pre build statistics"
- pixi run -e $PIXI_ENV ccache -sv
- echo "Run pixi run test"
- pixi run -e $PIXI_ENV test
- echo "ccache post build statistics"
- pixi run -e $PIXI_ENV ccache -sv