Skip to content

Commit 1fe4a3e

Browse files
try sdl3 install linux
1 parent f53e8e5 commit 1fe4a3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@ jobs:
249249
tar xvfz cmake-3.31.10-linux-x86_64.tar.gz
250250
cp -r cmake-3.31.10-linux-x86_64/* /usr/
251251
252+
- name: Build SDL
253+
run: |
254+
wget https://github.com/libsdl-org/SDL/releases/download/release-3.2.28/SDL3-3.2.28.tar.gz
255+
tar xvfz SDL3-3.2.28.tar.gz
256+
mkdir build
257+
cd build
258+
cmake ../SDL3-3.2.28 -DSDL_SHARED=OFF -DSDL_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DSDL_VULKAN=OFF -DSDL_CAMERA=OFF -DSDL_GPU=OFF
259+
cmake --build . --config Release
260+
cmake --install .
261+
252262
- uses: actions/checkout@v2
253263
with:
254264
submodules: recursive

0 commit comments

Comments
 (0)