File tree Expand file tree Collapse file tree 5 files changed +55
-96
lines changed Expand file tree Collapse file tree 5 files changed +55
-96
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
clang_format :
13
- name : Clang-Format
14
13
runs-on : ubuntu-latest
15
14
steps :
16
- - uses : actions/checkout@v1
15
+ - uses : actions/checkout@v4
17
16
18
17
- name : Run clang format
19
18
run : |
20
19
sudo apt update
21
20
sudo apt install -y git clang-format
21
+ if [ $? -ge 1 ]; then return 1; fi
22
22
./.run-clang-format
23
+ if [ $? -ge 1 ]; then return 1; fi
23
24
output=$(git diff)
24
25
if [ -n "$output" ]; then exit 1; else exit 0; fi
Original file line number Diff line number Diff line change
1
+ name : Ubuntu [Focal, Jammy, Noble]
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ schedule :
9
+ - cron : ' 0 5 * * *'
10
+ workflow_dispatch :
11
+ release :
12
+ types :
13
+ - released
14
+
15
+ jobs :
16
+ ci :
17
+ name : ${{ matrix.distro }}
18
+ runs-on : ubuntu-latest
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ distro : [focal, jammy, noble]
23
+ container :
24
+ image : ubuntu:${{ matrix.distro }}
25
+ env :
26
+ CCACHE_DIR : ${{ github.workspace }}/${{ matrix.distro }}/.ccache
27
+ DEBIAN_FRONTEND : noninteractive
28
+ TZ : Etc/UTC
29
+ steps :
30
+ - name : Checkout repository
31
+ uses : actions/checkout@v4
32
+ with :
33
+ path : target_ws/src
34
+
35
+ - name : Build and Tests
36
+ uses : tesseract-robotics/colcon-action@v9
37
+ with :
38
+ before-script : ' apt install -y -qq clang-tidy lcov'
39
+ ccache-prefix : ${{ matrix.distro }}
40
+ add-ros-ppa : true
41
+ vcs-file : dependencies.repos
42
+ 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ jobs:
87
87
cp ./*.nupkg ${{ github.workspace }}/artifacts
88
88
cp ./*.tar.xz ${{ github.workspace }}/artifacts
89
89
90
- - uses : actions/upload-artifact@v2
90
+ - uses : actions/upload-artifact@v4
91
91
if : ${{ github.event_name == 'release' && github.event.action == 'released' }}
92
92
with :
93
93
name : nuget_package
94
94
path : ${{ github.workspace }}/artifacts/*.nupkg
95
95
96
- - uses : actions/upload-artifact@v2
96
+ - uses : actions/upload-artifact@v4
97
97
if : ${{ github.event_name == 'release' && github.event.action == 'released' }}
98
98
with :
99
99
name : archive_package
Original file line number Diff line number Diff line change @@ -110,17 +110,17 @@ std::vector<std::string> getAllAvailableSections(const std::string& library_name
110
110
111
111
std::string decorate (const std::string& library_name, const std::string& library_directory)
112
112
{
113
- boost::filesystem::path sl ;
113
+ boost::filesystem::path lib_path ;
114
114
if (library_directory.empty ())
115
- sl = boost::filesystem::path (library_name);
115
+ lib_path = boost::filesystem::path (library_name);
116
116
else
117
- sl = boost::filesystem::path (library_directory) / library_name;
117
+ lib_path = boost::filesystem::path (library_directory) / library_name;
118
118
119
119
boost::filesystem::path actual_path =
120
- (std::strncmp (sl .filename ().string ().c_str (), " lib" , 3 ) != 0 ?
121
- boost::filesystem::path ((sl .has_parent_path () ? sl .parent_path () / L" lib" : L" lib" ).native () +
122
- sl .filename ().native ()) :
123
- sl );
120
+ (std::strncmp (lib_path .filename ().string ().c_str (), " lib" , 3 ) != 0 ?
121
+ boost::filesystem::path ((lib_path .has_parent_path () ? lib_path .parent_path () / L" lib" : L" lib" ).native () +
122
+ lib_path .filename ().native ()) :
123
+ lib_path );
124
124
125
125
actual_path += boost::dll::shared_library::suffix ();
126
126
return actual_path.string ();
You can’t perform that action at this time.
0 commit comments