Skip to content

Commit

Permalink
Install ninja build tool on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Dec 1, 2024
1 parent 3d0fdf5 commit 6e2b30a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Install LCov
run: sudo apt-get update -q
&& sudo apt-get install lcov -q -y
&& sudo apt-get install ninja-build lcov -q -y

- name: Configure
working-directory: asio
Expand Down Expand Up @@ -115,10 +115,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup ninja build toolchain
uses: aminya/setup-cpp@v1
with:
ninja: true

- name: Install static analyzers
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt-get install cppcheck ninja-build -y -q
# Not used! sudo apt-get install cppcheck -y -q
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19 all
Expand Down Expand Up @@ -198,7 +203,7 @@ jobs:
with: {python-version: "3.12"}

- name: Install m.css dependencies
run: pip3 install jinja2 Pygments
run: pip3 install ninja jinja2 Pygments

- name: Install Doxygen
run: sudo apt-get update -q
Expand Down
1 change: 1 addition & 0 deletions asio/.cmakefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# git ls-files '::*.md' '::*.cmake' '::*CMakeLists.txt' '::*.json' '::*.cmake.in'
#
files='
../.github/workflows/cmake.yml
.CMakeUserPresets.json
.TODO.txt
.clang-format
Expand Down
1 change: 1 addition & 0 deletions asio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ endif()
# ---- Install rules ----

if(NOT CMAKE_SKIP_INSTALL_RULES)
include(cmake/AddUninstallTarget.cmake)
include(cmake/install-rules.cmake)
configure_file(asio.pc.cmake asio.pc)
install(FILES ${PROJECT_BINARY_DIR}/asio.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
Expand Down

0 comments on commit 6e2b30a

Please sign in to comment.