Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set SDL2 default
run: |
sed -i 's/WITH_SDL3:=yes/WITH_SDL3:=no/g' Makefile
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build
run: |
# Public runners come with 4 CPUs.
make -j4
make WITH_SDL3=no -j4
- name: Create testbuild package
run: |
# Create release directory tree
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ jobs:
- name: Install build dependencies
run: |
sudo apt update
sudo apt install libgl1-mesa-dev libsdl2-dev libopenal-dev libcurl4-openssl-dev \
sudo apt install libgl1-mesa-dev libopenal-dev libcurl4-openssl-dev \
libavformat-dev libswscale-dev libvulkan-dev build-essential
- name: Build SDL3
uses: libsdl-org/setup-sdl@main
with:
install-linux-dependencies: true
version: 3-latest
- name: Check out repository code
uses: actions/checkout@v5
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install build dependencies
run: |
brew update
brew install sdl2 openal-soft make molten-vk
brew install sdl3 openal-soft make molten-vk
- name: Check out repository code
uses: actions/checkout@v5
- name: Build
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,19 @@ jobs:
unzip
mingw-w64-${{matrix.env}}-gcc
mingw-w64-${{matrix.env}}-make
mingw-w64-${{matrix.env}}-SDL2
mingw-w64-${{matrix.env}}-vulkan-headers
mingw-w64-${{matrix.env}}-pkgconf
- name: Check out repository code
uses: actions/checkout@v5
- name: Build
shell: msys2 {0}
run: |
# Download and extract SDL3 devel files.
wget -c https://github.com/libsdl-org/SDL/releases/download/release-3.2.24/SDL3-devel-3.2.24-mingw.tar.gz
tar xf SDL3-devel-3.2.24-mingw.tar.gz
mv SDL3-3.2.24 SDL3
# Public runners come with 4 CPUs.
make -j4
PKG_CONFIG_PATH=SDL3/i686-w64-mingw32/lib/pkgconfig make -j4
- name: Create testbuild package
shell: msys2 {0}
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ jobs:
- name: Build
shell: msys2 {0}
run: |
sed -i 's|WITH_SDL3:=no|WITH_SDL3:=yes|g' Makefile
# Download and extract SDL3 devel files.
wget -c https://github.com/libsdl-org/SDL/releases/download/release-3.2.24/SDL3-devel-3.2.24-mingw.tar.gz
tar xf SDL3-devel-3.2.24-mingw.tar.gz
mv SDL3-3.2.24 SDL3
# Public runners come with 4 CPUs.
make -j4
PKG_CONFIG_PATH=SDL3/i686-w64-mingw32/lib/pkgconfig make -j4
- name: Create testbuild package
shell: msys2 {0}
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# - Vulkan renderer lib (ref_vk.so / rev_vk.dll) #
# #
# Dependencies: #
# - SDL2 #
# - SDL3 #
# - Vulkan headers #
# #
# Platforms: #
Expand All @@ -20,7 +20,7 @@
# -------------------------

# Builds with SDL 3 instead of SDL 2.
WITH_SDL3:=no
WITH_SDL3:=yes

# ----------

Expand Down