fix: Enable FreeType font rendering for Web platform #25
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: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build-linux: | |
| name: Linux (Ubuntu GCC) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| cmake \ | |
| ninja-build \ | |
| libglfw3-dev \ | |
| libgl1-mesa-dev \ | |
| xorg-dev \ | |
| libxkbcommon-dev | |
| - name: Configure CMake | |
| run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| working-directory: build | |
| run: ctest --output-on-failure | |
| build-macos: | |
| name: macOS (Clang) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| brew install cmake ninja glfw | |
| - name: Configure CMake | |
| run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| working-directory: build | |
| run: ctest --output-on-failure | |
| build-windows-mingw: | |
| name: Windows (MinGW-w64) | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| shell: msys2 {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup MSYS2 | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: MINGW64 | |
| update: true | |
| install: >- | |
| mingw-w64-x86_64-gcc | |
| mingw-w64-x86_64-cmake | |
| mingw-w64-x86_64-ninja | |
| mingw-w64-x86_64-glfw | |
| mingw-w64-x86_64-glm | |
| - name: Configure CMake | |
| run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| working-directory: build | |
| run: ctest --output-on-failure | |
| build-emscripten: | |
| name: Web (Emscripten) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Emscripten | |
| uses: mymindstorm/setup-emsdk@v14 | |
| with: | |
| version: latest | |
| - name: Configure CMake | |
| run: emcmake cmake -B build_web -G Ninja -DES_BUILD_WEB=ON | |
| - name: Build | |
| run: cmake --build build_web |