Skip to content

Commit dac83f7

Browse files
committed
sync SDL_image and SDL_ttf sources
1 parent c23608d commit dac83f7

File tree

329 files changed

+39549
-15104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

329 files changed

+39549
-15104
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: 'Setup ninja'
2+
description: 'Download ninja and add it to the PATH environment variable'
3+
inputs:
4+
version:
5+
description: 'Ninja version'
6+
default: '1.12.1'
7+
runs:
8+
using: 'composite'
9+
steps:
10+
- name: 'Calculate variables'
11+
id: calc
12+
shell: sh
13+
run: |
14+
case "${{ runner.os }}-${{ runner.arch }}" in
15+
"Linux-X86" | "Linux-X64")
16+
archive="ninja-linux.zip"
17+
;;
18+
"Linux-ARM64")
19+
archive="ninja-linux-aarch64.zip"
20+
;;
21+
"macOS-X86" | "macOS-X64" | "macOS-ARM64")
22+
archive="ninja-mac.zip"
23+
;;
24+
"Windows-X86" | "Windows-X64")
25+
archive="ninja-win.zip"
26+
;;
27+
"Windows-ARM64")
28+
archive="ninja-winarm64.zip"
29+
;;
30+
*)
31+
echo "Unsupported ${{ runner.os }}-${{ runner.arch }}"
32+
exit 1;
33+
;;
34+
esac
35+
echo "archive=${archive}" >> ${GITHUB_OUTPUT}
36+
echo "cache-key=${archive}-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}" >> ${GITHUB_OUTPUT}
37+
- name: 'Restore cached ${{ steps.calc.outputs.archive }}'
38+
id: cache-restore
39+
uses: actions/cache/restore@v4
40+
with:
41+
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
42+
key: ${{ steps.calc.outputs.cache-key }}
43+
- name: 'Download ninja ${{ inputs.version }} for ${{ runner.os }} (${{ runner.arch }})'
44+
if: ${{ (!steps.cache-restore.outputs.cache-hit || steps.cache-restore.outputs.cache-hit == 'false') }}
45+
shell: pwsh
46+
run: |
47+
Invoke-WebRequest "https://github.com/ninja-build/ninja/releases/download/v${{ inputs.version }}/${{ steps.calc.outputs.archive }}" -OutFile "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
48+
- name: 'Cache ${{ steps.calc.outputs.archive }}'
49+
if: ${{ (!steps.cache-restore.outputs.cache-hit || steps.cache-restore.outputs.cache-hit == 'false') }}
50+
uses: actions/cache/save@v4
51+
with:
52+
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
53+
key: ${{ steps.calc.outputs.cache-key }}
54+
- name: 'Extract ninja'
55+
shell: pwsh
56+
run: |
57+
7z "-o${{ runner.temp }}/ninja-${{ inputs.version }}-${{ runner.arch }}" x "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
58+
- name: 'Set output variables'
59+
id: final
60+
shell: pwsh
61+
run: |
62+
echo "${{ runner.temp }}/ninja-${{ inputs.version }}-${{ runner.arch }}" >> $env:GITHUB_PATH

onsyuri_libretro/deps/SDL_image/.github/workflows/main.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -62,7 +62,7 @@ jobs:
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 \
@@ -76,7 +76,6 @@ jobs:
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

Comments
 (0)