Added some documentation. #209
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
| name: Ubuntu | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - devel | |
| - 'feat/*' | |
| - 'fix/*' | |
| pull_request: | |
| branches: ["main", "devel"] | |
| env: | |
| # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
| BUILD_TYPE: Release | |
| jobs: | |
| compiler_matrix: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| cxx_standard: [20, 23] | |
| clang_version: ["17", "18", "19", "20"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: libwebkit2gtk-4.1-dev libcurl4-openssl-dev libcrypto++-dev ninja-build # clang uses libtinfo, which apparently is in ncurses? | |
| version: 1.0 | |
| - name: Install boost | |
| uses: MarkusJx/install-boost@v2.4.1 | |
| id: install-boost | |
| with: | |
| # REQUIRED: Specify the required boost version | |
| # A list of supported versions can be found here: | |
| # https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json | |
| boost_version: 1.87.0 | |
| # OPTIONAL: Specify a platform version | |
| platform_version: 22.04 | |
| - name: Install clang | |
| run: | | |
| curl -LO https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh ${{ matrix.clang_version }} | |
| sudo apt-get install -y clang-${{ matrix.clang_version }} lld-${{ matrix.clang_version }} libc++-${{ matrix.clang_version }}-dev libc++abi-${{ matrix.clang_version }}-dev | |
| - name: Tool Version Dump | |
| run: | | |
| clang++ --version | |
| cmake --version | |
| ninja --version | |
| - name: Symlink xlocale | |
| run: sudo ln -s /usr/include/locale.h /usr/include/xlocale.h | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} -G"Ninja" -DNUI_ENABLE_TESTS=on -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNUI_BUILD_EXAMPLES=on -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_CXX_EXTENSIONS=on -DCMAKE_CXX_COMPILER=clang++-${{ matrix.clang_version }} -DCMAKE_C_COMPILER=clang-${{ matrix.clang_version }} -DCMAKE_LINKER=lld-${{ matrix.clang_version }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} | |
| env: | |
| Boost_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} --config ${{env.BUILD_TYPE}} | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} | |
| run: ./tests/nui-tests |