@@ -92,12 +92,13 @@ jobs:
92
92
libpng-dev \
93
93
libjpeg-dev \
94
94
libtiff-dev \
95
- libwebp-dev
95
+ libwebp-dev \
96
+ libavif-dev
96
97
97
98
- name : Install Dependencies on macOS
98
99
if : matrix.os == 'macos-latest'
99
100
run : |
100
- brew install libpng jpeg libtiff webp
101
+ brew install libpng jpeg libtiff webp libavif libimageio
101
102
102
103
- name : Configure SDL with CMake on Linux (x86_64)
103
104
if : matrix.os == 'linux' || matrix.os == 'ubuntu-latest'
@@ -123,6 +124,17 @@ jobs:
123
124
cmake --build ./build --config Release
124
125
cmake --install ./build --config Release --prefix ./install
125
126
127
+ - name : SDL2Find workaround on unix based OS.
128
+ if : runner.os != 'Windows'
129
+ run : |
130
+ # hide SDL2Config.cmake so find_package(SDL2) uses FindSDL2.cmake module
131
+ SDL2_CFG_DIR="SDLImage/SDL/install/lib/cmake/SDL2"
132
+ if [ -d "$SDL2_CFG_DIR" ]; then
133
+ for f in "$SDL2_CFG_DIR"/SDL2Config*.cmake; do
134
+ mv "$f" "${f}.disabled"
135
+ done
136
+ fi
137
+
126
138
- name : Install NASM
127
139
if : runner.os == 'Windows'
128
140
run : choco install nasm
@@ -148,6 +160,11 @@ jobs:
148
160
- name : Build SDLImage
149
161
run : cmake --build SDLImage/build --config Release
150
162
163
+ - name : Move Windows binaries
164
+ if : matrix.os == 'windows-latest'
165
+ run : |
166
+ mv SDLImage/build/Release/*.dll SDLImage/build/
167
+
151
168
- name : Upload Artifacts
152
169
uses : actions/upload-artifact@v4.3.4
153
170
with :
0 commit comments