-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AD-711] move generate compile_commands after get mongo-driver depend…
…encies
- Loading branch information
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,20 +69,6 @@ jobs: | |
sudo apt update | ||
sudo apt install libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev linux-headers-$(uname -r) gcc gcc-multilib g++ g++-multilib linux-headers-$(uname -r) build-essential valgrind libboost-all-dev libbson-dev libsasl2-dev lcov | ||
- name: generate-compile-commands-file | ||
run: | | ||
cmake "${{github.workspace}}/src" -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DCMAKE_BUILD_TYPE="Debug" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
- name: clang-tidy-check | ||
uses: ZedThree/[email protected] | ||
id: review | ||
#with: | ||
# CMake command to run in order to generate compile_commands.json | ||
# cmake_command: cmake "./src" -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DCMAKE_BUILD_TYPE="Debug" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
# If there are any comments, fail the check | ||
- if: steps.review.outputs.total_comments > 0 | ||
run: exit 1 | ||
|
||
- name: Cache DocumentDB JDBC JAR | ||
id: cache-documentdb-jdbc-jar | ||
uses: actions/cache@v3 | ||
|
@@ -129,6 +115,20 @@ jobs: | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_MNMLSTC=1 -DCMAKE_INSTALL_PREFIX=/usr/local | ||
sudo make | ||
sudo make install | ||
- name: generate-compile-commands-file | ||
run: | | ||
cmake "${{github.workspace}}/src" -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DCMAKE_BUILD_TYPE="Debug" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
- name: clang-tidy-check | ||
uses: ZedThree/[email protected] | ||
id: review | ||
#with: | ||
# CMake command to run in order to generate compile_commands.json | ||
# cmake_command: cmake "./src" -DCMAKE_EXPORT_COMPILE_COMMANDS=on -DCMAKE_BUILD_TYPE="Debug" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
# If there are any comments, fail the check | ||
- if: steps.review.outputs.total_comments > 0 | ||
run: exit 1 | ||
|
||
- name: configure-and-build-driver | ||
run: | | ||
|