Initial multi-x11/wayland backend setup #439
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: build | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: | |
| - macos-14 | |
| - macos-15 | |
| # webgui failure | |
| # - ubuntu-20.04 | |
| - ubuntu-22.04 | |
| - ubuntu-24.04 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up dependencies | |
| if: ${{ runner.os == 'Linux' }} | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -yq libasound2-dev libcairo2-dev libdbus-1-dev libgl1-mesa-dev liblo-dev libpulse-dev libsdl2-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev xvfb | |
| - name: Set num jobs | |
| if: ${{ runner.os == 'Linux' }} | |
| run: echo "JOBS=$(nproc)" >> $GITHUB_ENV | |
| - name: Set num jobs | |
| if: ${{ runner.os != 'Linux' }} | |
| run: echo "JOBS=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV | |
| - name: Without any warnings | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: Run tests | |
| if: ${{ runner.os == 'Linux' }} | |
| run: | | |
| xvfb-run make -C tests run | |
| - name: As C++98 mode | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -std=gnu++98 | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: As C++11 mode | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -std=gnu++11 | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: As C++14 mode | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -std=gnu++14 | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: As C++17 mode | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -std=gnu++17 | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: As C++20 mode | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -std=gnu++20 | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: No deprecated methods allowed | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -DDGL_ALLOW_DEPRECATED_METHODS=0 | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: No namespace | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -DDONT_SET_USING_DISTRHO_NAMESPACE -DDONT_SET_USING_DGL_NAMESPACE | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: Custom namespace | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror -DDISTRHO_NAMESPACE=WubbWubb -DDGL_NAMESPACE=DabDab | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} | |
| - name: Without Cairo | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} HAVE_CAIRO=false | |
| - name: Without OpenGL | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| make -j ${{ env.JOBS }} HAVE_OPENGL=false | |
| - name: With UI_TYPE=cairo | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| env UI_TYPE=cairo make -j ${{ env.JOBS }} -C examples/Parameters jack | |
| - name: With UI_TYPE=generic | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| env UI_TYPE=generic make -j ${{ env.JOBS }} -C examples/Parameters jack | |
| - name: With UI_TYPE=gles2 | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| env UI_TYPE=gles2 make -j ${{ env.JOBS }} -C examples/Parameters jack | |
| - name: With UI_TYPE=gles3 | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| env UI_TYPE=gles3 make -j ${{ env.JOBS }} -C examples/Parameters jack | |
| - name: With UI_TYPE=opengl | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| env UI_TYPE=opengl make -j ${{ env.JOBS }} -C examples/Parameters jack | |
| - name: With UI_TYPE=opengl3 | |
| env: | |
| CFLAGS: -Werror | |
| CXXFLAGS: -Werror | |
| run: | | |
| make clean >/dev/null | |
| env UI_TYPE=opengl3 make -j ${{ env.JOBS }} -C examples/Parameters jack |