@@ -15,15 +15,15 @@ jobs:
1515 fail-fast : false
1616 matrix :
1717 platform :
18- - { name: Windows (MSVC+CMake), os: windows-latest, shell: sh, cmake: '-GNinja', msvc: 1, shared: 1, static: 0, vendored: 1 }
19- - { name: Windows (mingw32+autotools), os: windows-latest, shell: 'msys2 {0}', msystem: mingw32, msys-env: mingw-w64-i686, shared: 1, static: 1 }
20- - { name: Windows (mingw64+CMake), os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64, shared: 1, static: 0,
18+ - { name: ' Windows (MSVC+CMake)', os: windows-latest, shell: sh, cmake: '-GNinja', msvc: 1, shared: 1, static: 0, vendored: 1 }
19+ - { name: ' Windows (mingw32+autotools)', os: windows-latest, shell: 'msys2 {0}', msystem: mingw32, msys-env: mingw-w64-i686, shared: 1, static: 1 }
20+ - { name: ' Windows (mingw64+CMake)', os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64, shared: 1, static: 0,
2121 cmake : ' -DSDL2IMAGE_BACKEND_STB=OFF -DSDL2IMAGE_BACKEND_WIC=OFF -G "Ninja Multi-Config"' }
22- - { name: Linux (autotools), os: ubuntu-latest, shell: sh, shared: 1, static: 1}
23- - { name: Linux (CMake), os: ubuntu-latest, shell: sh, cmake: '-GNinja', shared: 1, static: 0, vendored: 1 }
22+ - { name: ' Linux (autotools)', os: ubuntu-latest, shell: sh, shared: 1, static: 1}
23+ - { name: ' Linux (CMake)', os: ubuntu-latest, shell: sh, cmake: '-GNinja', shared: 1, static: 0, vendored: 1 }
2424 - { name: 'Linux (CMake, static)', os: ubuntu-latest, shell: sh, cmake: '-DBUILD_SHARED_LIBS=OFF -GNinja', shared: 0, static: 1, vendored: 1 }
25- - { name: Macos (autotools), os: macos-latest, shell: sh, shared: 1, static: 1 }
26- - { name: Macos (CMake), os: macos-latest, shell: sh, cmake: '-GNinja', shared: 1, static: 0, vendored: 1 }
25+ - { name: 'macOS (autotools)', os: macos-latest, shell: sh, shared: 1, static: 1 }
26+ - { name: 'macOS (CMake)' , os: macos-latest, shell: sh, cmake: '-GNinja -DSDL2IMAGE_DEPS_SHARED=OFF ', shared: 1, static: 0, vendored: 1 }
2727
2828 steps :
2929 - uses : ilammy/msvc-dev-cmd@v1
6262 sdl-test : true
6363 shell : ${{ matrix.platform.shell }}
6464 add-to-environment : true
65- - name : Setup Macos dependencies
65+ - name : Setup macOS dependencies
6666 if : ${{ runner.os == 'macOS' }}
6767 run : |
6868 brew install \
7676 libtool \
7777 nasm \
7878 ninja \
79- pkg-config \
8079 webp \
8180 zlib \
8281 ${NULL+}
@@ -103,9 +102,9 @@ jobs:
103102 uses : ilammy/setup-nasm@v1
104103 if : ${{ matrix.platform.vendored && !contains(matrix.platform.shell, 'msys2') }}
105104
106- - uses : actions/checkout@v3
105+ - uses : actions/checkout@v4
107106 with :
108- submodules : recursive
107+ submodules : ${{ (matrix.platform.vendored && ' recursive') || false }}
109108
110109 - name : Check that versioning is consistent
111110 # We only need to run this once: arbitrarily use the Linux/CMake build
@@ -142,7 +141,7 @@ jobs:
142141 if [ "x${{ runner.os }}" = xLinux ]; then
143142 export LD_LIBRARY_PATH="${{ github.workspace }}/build:$LD_LIBRARY_PATH"
144143 fi
145- if [ "x${{ runner.os }}" = xmacos ]; then
144+ if [ "x${{ runner.os }}" = xmacOS ]; then
146145 export DYLD_LIBRARY_PATH="${{ github.workspace }}/build:$DYLD_LIBRARY_PATH"
147146 fi
148147 if [ "x${{ runner.os }}" = "xWindows" ]; then
@@ -185,7 +184,7 @@ jobs:
185184 ( cd prefix_cmake; find . ) | LC_ALL=C sort -u
186185 - name : Upload artifacts (CMake)
187186 if : ${{ failure() && runner.os == 'Linux' && matrix.platform.cmake }}
188- uses : actions/upload-artifact@v3
187+ uses : actions/upload-artifact@v4
189188 with :
190189 name : " ${{ matrix.platform.name }} artifacts"
191190 path : |
@@ -265,7 +264,7 @@ jobs:
265264 make -j"${parallel}" -C build distcheck V=1
266265 - name : Upload artifacts (Autotools)
267266 if : ${{ failure() && !matrix.platform.cmake }}
268- uses : actions/upload-artifact@v3
267+ uses : actions/upload-artifact@v4
269268 with :
270269 name : ${{ matrix.platform.name }} artifacts
271270 path : |
0 commit comments