@@ -33,28 +33,22 @@ format:
3333ubuntu:cpp:build :
3434 stage : build
3535 script :
36- - mkdir build && cd build && cmake ..
37- - make -j$(nproc --all) all
38- artifacts :
39- paths :
40- - build/
36+ - mkdir build && cd build && cmake .. && make -j$(nproc --all) all install
37+ - make uninstall
4138
42- ubuntu:cpp:install :
39+ ubuntu:cpp:example :
4340 stage : build
4441 needs : ["ubuntu:cpp:build"]
4542 script :
46- - cd build
47- - make install
43+ - mkdir build && cd build && cmake -DBUILD_CXX_EXAMPLE=ON .. && make -j$(nproc --all) install
4844 - make uninstall
4945
50- ubuntu:cpp:example :
46+ ubuntu:cpp:standalone_example :
5147 stage : build
52- needs : ["ubuntu:cpp:install"]
53- script :
48+ needs : ["ubuntu:cpp:build"]
5449 script :
55- - mkdir build && cd build && cmake -DBUILD_CXX_EXAMPLE=ON .. && make install && cd ..
56- - cd examples/cpp/ && mkdir build && cd build && cmake ..
57- - make -j$(nproc --all) all
50+ - mkdir build && cd build && cmake .. && make -j$(nproc --all) install && cd ..
51+ - cd examples/cpp/ && mkdir build && cd build && cmake .. && make -j$(nproc --all)
5852
5953# ----- ubuntu python jobs ---------------------------------------------------------------------------
6054ubuntu:py:wheel :
@@ -103,9 +97,9 @@ manylinux:wheels:
10397 image : docker:19.03.12
10498 needs : ["ubuntu:py:wheel"]
10599 rules :
100+ - if : $CI_COMMIT_TAG
106101 - if : $CI_MERGE_REQUEST_IID
107102 - if : $CI_PIPELINE_SOURCE == "schedule"
108- - if : " $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
109103 variables :
110104 DOCKER_IMAGE : " quay.io/pypa/manylinux2014_x86_64"
111105 PLAT : " manylinux2014_x86_64"
@@ -133,9 +127,9 @@ manylinux:test:
133127 needs : ["manylinux:wheels"]
134128 image : docker:19.03.12
135129 rules :
130+ - if : $CI_COMMIT_TAG
136131 - if : $CI_MERGE_REQUEST_IID
137132 - if : $CI_PIPELINE_SOURCE == "schedule"
138- - if : " $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
139133 variables :
140134 DOCKER_IMAGE : " quay.io/pypa/manylinux2014_x86_64"
141135 PLAT : " manylinux2014_x86_64"
@@ -153,12 +147,12 @@ testpypi:
153147 stage : deploy
154148 needs : ["manylinux:test"]
155149 rules :
156- - if : " $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH "
150+ - if : $CI_COMMIT_TAG
157151 variables :
158152 TWINE_PASSWORD : " ${TESTPYPI_ACCESS_TOKEN}"
159153 TWINE_USERNAME : " __token__"
160154 script :
161- - twine upload --skip-existing --repository testpypi wheelhouse/*.whl
155+ - twine upload --verbose -- skip-existing --repository testpypi wheelhouse/*.whl
162156 artifacts :
163157 paths :
164158 - wheelhouse/
@@ -167,9 +161,9 @@ pypi:
167161 stage : deploy
168162 needs : ["testpypi"]
169163 rules :
170- - if : " $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH "
164+ - if : $CI_COMMIT_TAG
171165 variables :
172166 TWINE_PASSWORD : " ${PYPI_ACCESS_TOKEN}"
173167 TWINE_USERNAME : " __token__"
174168 script :
175- - twine upload --skip-existing --repository pypi wheelhouse/*.whl
169+ - twine upload --verbose -- skip-existing --repository pypi wheelhouse/*.whl
0 commit comments