Skip to content

Commit 1d9f23f

Browse files
committed
Update .gitlab-ci.yml file
1 parent b1be0b6 commit 1d9f23f

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,20 @@ cache:
1313
- $CCACHE_DIR
1414

1515
build-job:
16-
stage: build
1716
rules:
1817
- if: '$CI_COMMIT_BRANCH == "main"'
1918
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
19+
- if: '$CI_COMMIT_MESSAGE =~ /CI BUILD/'
2020
- changes:
2121
- (exclude)README.md
2222
- (exclude)scripts/**/*
2323
- (exclude)doc/**/*
2424

2525
before_script:
2626
- export CCACHE_BASEDIR="$PWD"
27-
- export CCACHE_DIR="$PWD/ccache"
2827
- export CCACHE_COMPILERCHECK=content
2928
- if [ -d "$CCACHE_DIR" ] && [ "$(ls -A $CCACHE_DIR)" ]; then echo "Using existing ccache"; else echo "No active ccache found"; fi
30-
# - if [ -f "$CI_PROJECT_DIR/ccache.tar.gz" ]; then tar -xzf "$CI_PROJECT_DIR/ccache.tar.gz" -C $CCACHE_DIR; fi
3129
- mkdir -p $CCACHE_DIR
32-
# - ccache --zero-stats || true
3330
- ccache --show-stats || true
3431
- git clean -ffdx
3532

@@ -44,23 +41,20 @@ build-job:
4441
- make
4542

4643
after_script:
47-
- export CCACHE_DIR="$PWD/ccache"
4844
- ccache --show-stats || true
49-
# - tar -czf ${CCACHE_DIR}/ccache.tar.gz $CCACHE_DIR
50-
# - mv ${CCACHE_DIR}/ccache.tar.gz $CI_PROJECT_DIR/
5145

5246
artifacts:
5347
paths:
54-
- build
55-
- install
56-
- ${CCACHE_DIR}
57-
# - ${CCACHE_DIR}/ccache.tar.gz
48+
- build/
49+
- install/
50+
- ${CCACHE_DIR}/
5851

5952
test-job:
6053
stage: test
6154
rules:
6255
- if: '$CI_COMMIT_BRANCH == "main"'
6356
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
57+
- if: '$CI_COMMIT_MESSAGE =~ /CI BUILD/'
6458
- changes:
6559
- (exclude)README.md
6660
- (exclude)scripts/**/*
@@ -71,9 +65,7 @@ test-job:
7165
- build-job
7266

7367
before_script:
74-
- export CCACHE_DIR="$PWD/ccache"
7568
- mkdir -p $CCACHE_DIR
76-
# - tar -xzf ${CCACHE_DIR}/ccache.tar.gz -C $CCACHE_DIR || true
7769

7870
script:
7971
- echo $PWD
@@ -90,6 +82,6 @@ test-job:
9082
- ${base_path}/apps/src/tests/report.xml
9183
- ${base_path}/apps/src/tests/pytest_report.xml
9284
paths:
93-
- ${CCACHE_DIR}
85+
- ${CCACHE_DIR}/
9486
- ${base_path}/apps/src/tests/report.xml
9587
- ${base_path}/apps/src/tests/pytest_report.xml

0 commit comments

Comments
 (0)