Skip to content

Commit

Permalink
Add SDL3 to Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Jan 26, 2025
1 parent 124267d commit de1daa4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .azure/azure-pipelines-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ trigger:
- '.cirrus.yml'
- 'README.md'

variables:
sdl3-x86: 'https://github.com/libsdl-org/SDL/releases/download/release-3.2.0/SDL3-devel-3.2.0-mingw.zip'
sdl3-x64: 'https://github.com/libsdl-org/SDL/releases/download/release-3.2.0/SDL3-devel-3.2.0-VC.zip'

jobs:
- job: WindowsXP
variables:
Expand All @@ -26,6 +30,7 @@ jobs:
platform: Win32
gtk-bundle: $(gtk-bundle-x86)
libsndfile-url: $(libsndfile-url-x86)
sdl3-url: $(sdl3-x86)
artifact-prefix: "fluidsynth"
CFLAGS: "/arch:IA32"
CXXFLAGS: "/arch:IA32"
Expand All @@ -34,6 +39,7 @@ jobs:
platform: x64
gtk-bundle: $(gtk-bundle-x64)
libsndfile-url: $(libsndfile-url-x64)
sdl3-url: $(sdl3-x64)
artifact-prefix: "fluidsynth"
CFLAGS: ""
CXXFLAGS: ""
Expand All @@ -56,9 +62,17 @@ jobs:
cd d:\deps || exit -1
curl -LfsS -o gtk-bundle-dev.zip $(gtk-bundle) || exit -1
curl -LfsS -o libsndfile-dev.zip $(libsndfile-url) || exit -1
curl -LfsS -o sdl3-dev.zip $(sdl3-url) || exit -1
7z x -aos -- gtk-bundle-dev.zip > NUL || exit -1
7z x -aos -- libsndfile-dev.zip > NUL || exit -1
7z x -aos -- sdl3-dev.zip > NUL || exit -1
rm *.zip
cd SDL3-*
cp -rf i686-w64-mingw32/* ..
rm -rf x86_64-w64-mingw32 i686-w64-mingw32
cp -rf * ..
cd ..
rm -rf SDL3-*
cd libsndfile-*
cp -rf * ..
cd ..
Expand Down Expand Up @@ -181,12 +195,14 @@ jobs:
gtk-bundle: $(gtk-bundle-x64)
libsndfile-url: $(libsndfile-url-x64)
mingw-url: $(mingw-url-x64)
sdl3-url: 'https://github.com/libsdl-org/SDL/releases/download/release-3.2.0/SDL3-devel-3.2.0-mingw.zip'
x64-static:
CMAKE_FLAGS: '-DBUILD_SHARED_LIBS=0'
platform: x64
gtk-bundle: $(gtk-bundle-x64)
libsndfile-url: $(libsndfile-url-x64)
mingw-url: $(mingw-url-x64)
sdl3-url: 'https://github.com/libsdl-org/SDL/releases/download/release-3.2.0/SDL3-devel-3.2.0-mingw.zip'
pool:
vmImage: 'windows-2019'
steps:
Expand All @@ -206,10 +222,21 @@ jobs:
curl -LfsS -o gtk-bundle-dev.zip $(gtk-bundle) || exit -1
curl -LfsS -o libsndfile-dev.zip $(libsndfile-url) || exit -1
curl -LfsS -o mingw.zip $(mingw-url) || exit -1
curl -LfsS -o sdl3.zip $(sdl3-url) || exit -1
7z x -aos -- gtk-bundle-dev.zip > NUL || exit -1
7z x -aos -- libsndfile-dev.zip > NUL || exit -1
7z x -aos -- mingw.zip > NUL || exit -1
7z x -aos -- sdl3.zip > NUL || exit -1
rm *.zip
cd SDL3-*
rm -rf i686*
cd x86_64*
cp -rf * ../..
cd ..
rm -rf x86_64*
cp -rf * ..
cd ..
rm -rf SDL3-*
cd libsndfile-*
cp -rf * ..
cd ..
Expand Down

0 comments on commit de1daa4

Please sign in to comment.