Incremented project version to 1.2.0. #357
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: Fedora CI | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| jobs: | |
| build: | |
| name: Build and install project | |
| runs-on: ubuntu-latest | |
| container: fedora:latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: ['clang', 'gcc'] | |
| include: | |
| - compiler: 'clang' | |
| cc: 'clang' | |
| cxx: 'clang++' | |
| packages: 'clang clang-devel' | |
| - compiler: 'gcc' | |
| cc: 'gcc' | |
| cxx: 'g++' | |
| packages: 'gcc gcc-c++' | |
| steps: | |
| - name: Installing core packages | |
| run: | | |
| sudo dnf -y install git-core | |
| - name: Fetching sources | |
| uses: actions/checkout@v7 | |
| - name: Installing ${{ matrix.compiler }} compiler packages | |
| run: | | |
| sudo dnf -y install ${{ matrix.packages }} | |
| - name: Installing build system | |
| run: | | |
| sudo dnf -y install cmake ninja-build | |
| - name: Installing development packages | |
| run: | | |
| sudo dnf -y install boost-devel glibc-headers kernel-headers systemd systemd-devel | |
| - name: Installing helper tools | |
| run: | | |
| sudo dnf -y install libappstream-glib doxygen pandoc | |
| - name: Building project with CMake | |
| run: | | |
| cmake -S . -B build \ | |
| -GNinja \ | |
| -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_METAINFO: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=ON | |
| 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 |