12
12
types :
13
13
- released
14
14
15
+ env :
16
+ BUILD_TYPE : Debug
17
+
15
18
jobs :
16
19
ci :
17
20
name : ${{ matrix.distro }}
32
35
with :
33
36
path : target_ws/src
34
37
38
+ - name : Set build type to Release
39
+ if : ${{ github.event_name == 'release' && github.event.action == 'released' }}
40
+ run : |
41
+ echo "BUILD_TYPE=Release" >> $GITHUB_ENV
42
+
35
43
- name : Build and Tests
36
44
uses : tesseract-robotics/colcon-action@v11
37
45
with :
@@ -40,12 +48,33 @@ jobs:
40
48
add-ros-ppa : true
41
49
vcs-file : dependencies.repos
42
50
target-path : target_ws/src
43
- target-args : --cmake-args -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DENABLE_CLANG_TIDY=ON -DENABLE_CODE_COVERAGE=ON
51
+ target-args : --cmake-args -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DBUILD_TESTING=ON -DENABLE_CLANG_TIDY=ON -DENABLE_CODE_COVERAGE=ON -DENABLE_CPACK =ON
44
52
45
53
- name : CodeCov
46
54
if : matrix.distro == 'noble'
47
55
working-directory : target_ws
56
+ shell : bash
48
57
run : |
49
58
source install/setup.bash
50
59
make -C ./build/boost_plugin_loader ccov-all
51
60
bash <(curl -s https://codecov.io/bash) -t ec6ee46b-1f52-482c-82ef-1aaabc673f8d -s ./build/boost_plugin_loader -f *all-merged.info
61
+
62
+ - name : Package
63
+ if : ${{ github.event_name == 'release' && github.event.action == 'released' }}
64
+ working-directory : workspace/build/boost_plugin_loader
65
+ run : |
66
+ cpack --config CPackConfig.cmake
67
+ cp ./*.deb ${{ github.workspace }}/artifacts
68
+ cp ./*.tar.xz ${{ github.workspace }}/artifacts
69
+
70
+ - uses : actions/upload-artifact@v4
71
+ if : ${{ github.event_name == 'release' && github.event.action == 'released' }}
72
+ with :
73
+ name : debian_package
74
+ path : ${{ github.workspace }}/artifacts/*.deb
75
+
76
+ - uses : actions/upload-artifact@v4
77
+ if : ${{ github.event_name == 'release' && github.event.action == 'released' }}
78
+ with :
79
+ name : archive_package
80
+ path : ${{ github.workspace }}/artifacts/*.tar.xz
0 commit comments