Skip to content

Commit

Permalink
[AD-711] move generate compile_commands after get mongo-driver depend…
Browse files Browse the repository at this point in the history
…encies
  • Loading branch information
alinaliBQ committed Apr 28, 2022
1 parent 4394da4 commit 3f2c18d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3f2c18d

Please sign in to comment.