Updated the inline documentation of various classes and namespaces. (… #354
This file contains hidden or 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
| # | |
| # SPDX-FileCopyrightText: 2020-2026 EasyCoding Team and contributors | |
| # | |
| # SPDX-License-Identifier: MIT | |
| # | |
| name: Ubuntu CI | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| jobs: | |
| build: | |
| name: Build and install project | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: ['clang', 'gcc'] | |
| include: | |
| - compiler: 'clang' | |
| cc: 'clang' | |
| cxx: 'clang++' | |
| packages: 'clang' | |
| - compiler: 'gcc' | |
| cc: 'gcc' | |
| cxx: 'g++' | |
| packages: 'gcc' | |
| steps: | |
| - name: Fetching sources | |
| uses: actions/checkout@v7 | |
| - name: Updating apt package metadata | |
| run: | | |
| sudo apt-get update | |
| - name: Installing ${{ matrix.compiler }} compiler packages | |
| run: | | |
| sudo apt-get -y install ${{ matrix.packages }} | |
| - name: Installing build system | |
| run: | | |
| sudo apt-get -y install cmake make | |
| - name: Installing development packages | |
| run: | | |
| sudo apt-get -y install linux-libc-dev libboost-program-options-dev libsystemd-dev | |
| - name: Installing helper tools | |
| run: | | |
| sudo apt-get -y install appstream-util doxygen pandoc | |
| - name: Building project with CMake | |
| run: | | |
| cmake -S . -B build \ | |
| -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_C_COMPILER=${{ matrix.cc }} \ | |
| -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} \ | |
| -DCMAKE_INSTALL_PREFIX:PATH=/usr \ | |
| -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | |
| -DBUILD_DOC:BOOL=ON \ | |
| -DBUILD_MANPAGE:BOOL=ON \ | |
| -DBUILD_SHELL_COMPLETION:BOOL=ON \ | |
| -DBUILD_TESTS:BOOL=ON \ | |
| -DLINK_ALL_STATICALLY:BOOL=OFF \ | |
| -DLINK_BOOST_STATICALLY:BOOL=OFF \ | |
| -DLINK_ENABLE_OPTIMIZATIONS:BOOL=ON \ | |
| -DSYSTEMD_INTEGRATION:BOOL=ON \ | |
| -DTESTS_ENABLE_NETWORK:BOOL=OFF | |
| cmake --build build | |
| env: | |
| CFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection | |
| CXXFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection | |
| LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now | |
| - name: Running tests with CMake | |
| run: | | |
| ctest --test-dir build --output-on-failure | |
| - name: Installing project with CMake | |
| run: | | |
| sudo cmake --install build | |
| - name: Running installed project | |
| run: | | |
| zswap-cli --version |