dynapi: Don't use SDL_getenv; it might malloc before the app sets an … #4732
This file contains 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, pull_request] | |
jobs: | |
Build: | |
name: ${{ matrix.platform.name }} | |
runs-on: ${{ matrix.platform.os }} | |
defaults: | |
run: | |
shell: ${{ matrix.platform.shell }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { name: Windows (mingw32), os: windows-latest, shell: 'msys2 {0}', msystem: mingw32, msys-env: mingw-w64-i686 } | |
- { name: Windows (mingw64), os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64 } | |
- { name: Linux, os: ubuntu-22.04, shell: sh, flags: -GNinja } | |
- { name: MacOS, os: macos-latest, shell: sh } | |
steps: | |
- name: Set up MSYS2 | |
if: matrix.platform.shell == 'msys2 {0}' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.platform.msystem }} | |
install: >- | |
${{ matrix.platform.msys-env }}-gcc | |
${{ matrix.platform.msys-env }}-cmake | |
${{ matrix.platform.msys-env }}-ninja | |
${{ matrix.platform.msys-env }}-pkg-config | |
- name: Setup Linux dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
pkg-config \ | |
ninja-build \ | |
libasound2-dev \ | |
libdbus-1-dev \ | |
libegl1-mesa-dev \ | |
libgl1-mesa-dev \ | |
libgles2-mesa-dev \ | |
libibus-1.0-dev \ | |
libpipewire-0.3-dev \ | |
libpulse-dev \ | |
libsndio-dev \ | |
libudev-dev \ | |
libwayland-dev \ | |
libdecor-0-dev \ | |
libx11-dev \ | |
libxcursor-dev \ | |
libxext-dev \ | |
libxfixes-dev \ | |
libxi-dev \ | |
libxinerama-dev \ | |
libxkbcommon-dev \ | |
libxrandr-dev \ | |
libxss-dev \ | |
libxt-dev \ | |
libxv-dev \ | |
libxxf86vm-dev \ | |
libdrm-dev \ | |
libgbm-dev | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: cmake -B build -DSDL_TEST=ON ${{ matrix.platform.flags }} | |
- name: Build | |
run: cmake --build build/ --config Release | |