Skip to content

Commit 0655a63

Browse files
committed
e
1 parent ee39d83 commit 0655a63

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/cmake-sdl2.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,29 @@ jobs:
9797
libjpeg-dev \
9898
libtiff-dev \
9999
libwebp-dev
100-
100+
101+
- name: Install Dependencies on macOS
102+
if: matrix.os == 'macos-latest'
103+
run: |
104+
brew install libpng jpeg libtiff webp
105+
101106
- name: Configure SDL with CMake on Linux (x86_64)
102107
if: matrix.os == 'linux' || matrix.os == 'ubuntu-latest'
103108
run: |
104109
cd SDLImage/SDL
105-
cmake -S . -B ./build -DSDL_STATIC=OFF -DSDL_SHARED=ON
110+
cmake -S . -B ./build
106111
107112
- name: Configure SDL with CMake for macOS ARM64
108113
if: matrix.os == 'macos-latest'
109114
run: |
110115
cd SDLImage/SDL
111-
cmake -S . -B ./build -DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmake-arch }} -DSDL_STATIC=OFF -DSDL_SHARED=ON
116+
cmake -S . -B ./build -DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmake-arch }}
112117
113118
- name: Configure SDL with CMake for Windows
114119
if: matrix.os == 'windows-latest'
115120
run: |
116121
cd SDLImage/SDL
117-
cmake -S . -B ./build -A ${{ matrix.cmake-arch }} -DSDL_STATIC=OFF -DSDL_SHARED=ON
122+
cmake -S . -B ./build -A ${{ matrix.cmake-arch }}
118123
119124
- name: Build SDL2
120125
run: |

0 commit comments

Comments
 (0)