generic.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. name: 'Build'
  2. run-name: 'Configure, Build and Test SDL'
  3. on:
  4. workflow_call:
  5. inputs:
  6. platforms:
  7. description: 'JSON-encoded test properties'
  8. type: string
  9. required: true
  10. jobs:
  11. build:
  12. name: ${{ matrix.platform.name }}
  13. runs-on: ${{ matrix.platform.os }}
  14. container: ${{ matrix.platform.container }}
  15. defaults:
  16. run:
  17. shell: ${{ matrix.platform.shell }}
  18. strategy:
  19. fail-fast: false
  20. matrix:
  21. platform: ${{ fromJSON(inputs.platforms) }}
  22. steps:
  23. - name: 'Set up MSYS2'
  24. if: ${{ matrix.platform.platform == 'msys2' }}
  25. uses: msys2/setup-msys2@v2
  26. with:
  27. msystem: ${{ matrix.platform.msys2-msystem }}
  28. install: >-
  29. ${{ matrix.platform.msys2-env }}-cc
  30. ${{ matrix.platform.msys2-env }}-cmake
  31. ${{ matrix.platform.msys2-env }}-ffmpeg
  32. ${{ matrix.platform.msys2-env }}-ninja
  33. ${{ (!matrix.platform.msys2-no-perl && format('{0}-perl', matrix.platform.msys2-env)) || '' }}
  34. ${{ matrix.platform.msys2-env }}-pkg-config
  35. ${{ matrix.platform.msys2-env }}-clang-tools-extra
  36. ${{ (matrix.platform.ccache && format('{0}-ccache', matrix.platform.msys2-env)) || '' }}
  37. - name: 'About this job'
  38. run: |
  39. echo "key=${{ matrix.platform.key }}"
  40. echo "name=${{ matrix.platform.name }}"
  41. echo "os=${{ matrix.platform.os }}"
  42. echo ""
  43. echo "Add [sdl-ci-filter ${{ matrix.platform.key }}] to your commit message to reduce the number of jobs."
  44. - uses: actions/checkout@v4
  45. - name: 'Set up ninja'
  46. if: ${{ matrix.platform.setup-ninja }}
  47. uses: ./.github/actions/setup-ninja
  48. - name: 'Set up libusb for MSVC'
  49. if: ${{ matrix.platform.setup-libusb-arch != '' }}
  50. uses: ./.github/actions/setup-msvc-libusb
  51. with:
  52. arch: ${{ matrix.platform.setup-libusb-arch }}
  53. - uses: mymindstorm/setup-emsdk@v14
  54. if: ${{ matrix.platform.platform == 'emscripten' }}
  55. with:
  56. version: 3.1.35
  57. - uses: browser-actions/setup-chrome@v1
  58. id: setup-chrome
  59. if: ${{ matrix.platform.platform == 'emscripten' }}
  60. with:
  61. install-chromedriver: true
  62. - name: 'Add chrome to PATH'
  63. if: ${{ matrix.platform.platform == 'emscripten' }}
  64. run: |
  65. chrome_dir="$(dirname "${{ steps.setup-chrome.outputs.chrome-path }}")"
  66. chromedriver_dir="$(dirname "${{ steps.setup-chrome.outputs.chromedriver-path }}")"
  67. echo "CHROME_BINARY=${{ steps.setup-chrome.outputs.chrome-path }}" >>$GITHUB_ENV
  68. echo "CHROMEDRIVER_BINARY=${{ steps.setup-chrome.outputs.chromedriver-path }}" >>$GITHUB_ENV
  69. echo "chrome_dir=${chrome_dir}"
  70. echo "chromedriver_dir=${chromedriver_dir}"
  71. echo "${chrome_dir}" >>${GITHUB_PATH}
  72. echo "${chromedriver_dir}" >>${GITHUB_PATH}
  73. - uses: nttld/setup-ndk@v1
  74. if: ${{ matrix.platform.android-ndk }}
  75. id: setup-ndk
  76. with:
  77. local-cache: false
  78. ndk-version: r28c
  79. - name: 'Configure Android NDK variables'
  80. if: ${{ matrix.platform.android-ndk }}
  81. shell: sh
  82. run: |
  83. # We cannot use GitHub expressions in the controller job
  84. echo "ANDROID_NDK_HOME=${{ steps.setup-ndk.outputs.ndk-path }}" >>$GITHUB_ENV
  85. - uses: actions/setup-java@v4
  86. if: ${{ matrix.platform.java }}
  87. with:
  88. distribution: 'temurin'
  89. java-version: '17'
  90. - uses: ilammy/msvc-dev-cmd@v1
  91. if: ${{ matrix.platform.platform == 'msvc' }}
  92. with:
  93. arch: ${{ matrix.platform.msvc-vcvars-arch }}
  94. sdk: ${{ matrix.platform.msvc-vcvars-sdk }}
  95. - name: 'Set up Nokia N-Gage SDK'
  96. uses: ./.github/actions/setup-ngage-sdk
  97. if: ${{ matrix.platform.setup-ngage-sdk-path != '' }}
  98. with:
  99. path: '${{ matrix.platform.setup-ngage-sdk-path }}'
  100. - name: 'Set up Windows GDK Desktop'
  101. uses: ./.github/actions/setup-gdk-desktop
  102. if: ${{ matrix.platform.setup-gdk-folder != '' }}
  103. with:
  104. folder: '${{ matrix.platform.setup-gdk-folder }}'
  105. - name: 'Set up LoongArch64 toolchain'
  106. uses: ./.github/actions/setup-loongarch64-toolchain
  107. id: setup-loongarch64-toolchain
  108. if: ${{ matrix.platform.platform == 'loongarch64' }}
  109. - name: 'Setup Intel oneAPI toolchain'
  110. id: intel
  111. if: ${{ matrix.platform.intel }}
  112. run: |
  113. # Download the key to system keyring
  114. wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
  115. | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
  116. # Add signed entry to apt sources and configure the APT client to use Intel repository:
  117. echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
  118. # Update package list
  119. sudo apt-get update -y
  120. # Install oneAPI
  121. sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
  122. - name: 'Install apk packages'
  123. if: ${{ matrix.platform.apk-packages != '' }}
  124. run: |
  125. ${{ matrix.platform.sudo }} apk update
  126. ${{ matrix.platform.sudo }} apk add ${{ matrix.platform.apk-packages }}
  127. - name: 'Install apt packages'
  128. if: ${{ matrix.platform.apt-packages != '' }}
  129. run: |
  130. ${{ matrix.platform.sudo }} apt-get update
  131. ${{ matrix.platform.sudo }} apt-get install -y ${{ matrix.platform.apt-packages }}
  132. - name: 'Install brew packages'
  133. if: ${{ matrix.platform.brew-packages != '' }}
  134. run: |
  135. export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
  136. brew update
  137. brew install ${{ matrix.platform.brew-packages }}
  138. - name: 'Setup Python'
  139. uses: 'actions/setup-python@main'
  140. if: ${{ matrix.platform.setup-python }}
  141. with:
  142. python-version: '3.x'
  143. - name: 'Install PyPI packages'
  144. if: ${{ matrix.platform.pypi-packages != '' }}
  145. run: |
  146. python -m pip install --user ${{ matrix.platform.pypi-packages }}
  147. - name: 'Set up GLES for VITA' # Must be after apk
  148. if: ${{ matrix.platform.setup-vita-gles-type != '' }}
  149. uses: ./.github/actions/setup-vita-gles
  150. with:
  151. type: ${{ matrix.platform.setup-vita-gles-type }}
  152. - name: 'Pollute toolchain with "bad" SDL headers'
  153. if: ${{ matrix.platform.pollute-directories != '' }}
  154. #shell: ${{ matrix.platform.shell }}
  155. run: |
  156. # Create "bad" SDL headers in the toolchain.
  157. # SDL sources should not use these.
  158. for include in ${{ matrix.platform.pollute-directories }}; do
  159. toolchain_directory="${include}/SDL3"
  160. echo "Creating directory ${toolchain_directory}"
  161. mkdir -p "${toolchain_directory}/SDL3"
  162. for header in include/SDL3/*.h; do
  163. dest="${toolchain_directory}/SDL3/$(basename "${header}")"
  164. echo "Creating ${dest}"
  165. echo '#error "System SDL headers must not be used by build system"' >"$dest"
  166. done
  167. done
  168. - name: 'Calculate ccache key'
  169. if: ${{ matrix.platform.ccache }}
  170. id: prepare-restore-ccache
  171. run: |
  172. echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
  173. - name: 'Restore ccache'
  174. if: ${{ matrix.platform.ccache }}
  175. uses: actions/cache/restore@v4
  176. id: restore-ccache
  177. with:
  178. path: ${{ runner.temp }}/ccache
  179. key: ccache-${{ matrix.platform.key }}-${{ steps.prepare-restore-ccache.outputs.timestamp }}
  180. restore-keys: |
  181. ccache-${{matrix.platform.key}}
  182. - name: 'Configure ccache'
  183. if: ${{ matrix.platform.ccache }}
  184. run: |
  185. echo 'CCACHE_DIR=${{ runner.temp }}/ccache' >>${GITHUB_ENV}
  186. - name: 'Prepare ccache'
  187. if: ${{ matrix.platform.ccache && steps.restore-ccache.outputs.cache-hit }}
  188. run: |
  189. if [ "x${{ runner.os }}" = "xmacOS" ]; then
  190. touch_date="2025-02-01T12:00:00Z"
  191. else
  192. touch_date="2025-02-01"
  193. fi
  194. find "${CCACHE_DIR}" -type f -exec touch -a -m -d "$touch_date" {} +
  195. ccache -s
  196. ccache -z
  197. - name: 'Configure (CMake)'
  198. if: ${{ !matrix.platform.no-cmake }}
  199. #shell: ${{ matrix.platform.shell }}
  200. run: |
  201. ${{ matrix.platform.source-cmd }}
  202. ${{ matrix.platform.cmake-config-emulator }} cmake -S . -B build -G "${{ matrix.platform.cmake-generator }}" \
  203. -Wdeprecated -Wdev -Werror \
  204. ${{ matrix.platform.cmake-toolchain-file != '' && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.platform.cmake-toolchain-file) || '' }} \
  205. -DSDL_WERROR=${{ matrix.platform.werror }} \
  206. -DSDL_EXAMPLES=${{ matrix.platform.build-tests }} \
  207. -DSDL_TESTS=${{ matrix.platform.build-tests }} \
  208. -DSDLTEST_TRACKMEM=ON \
  209. -DSDL_INSTALL_TESTS=${{ matrix.platform.build-tests }} \
  210. -DSDL_CLANG_TIDY=${{ matrix.platform.clang-tidy }} \
  211. -DSDL_INSTALL_DOCS=ON \
  212. -DSDL_INSTALL_CPACK=ON \
  213. -DSDL_INSTALL_DOCS=ON \
  214. ${{ matrix.platform.cmake-arguments }} \
  215. -DSDL_SHARED=${{ matrix.platform.shared }} \
  216. -DSDL_STATIC=${{ matrix.platform.static }} \
  217. -DSDL_VENDOR_INFO="Github Workflow" \
  218. -DCMAKE_INSTALL_PREFIX=prefix \
  219. -DCMAKE_INSTALL_LIBDIR=lib \
  220. -DCMAKE_BUILD_TYPE=${{ matrix.platform.cmake-build-type }}
  221. - name: 'Build (CMake)'
  222. id: build
  223. if: ${{ !matrix.platform.no-cmake }}
  224. # shell: ${{ matrix.platform.shell }}
  225. run: |
  226. ${{ matrix.platform.source-cmd }}
  227. cmake --build build --config ${{ matrix.platform.cmake-build-type }} --verbose -- ${{ matrix.platform.cmake-build-arguments }}
  228. - name: 'Verify SDL_REVISION'
  229. if: ${{ !matrix.platform.no-cmake }}
  230. run: |
  231. echo "This should show us the SDL_REVISION"
  232. echo "Shared library:"
  233. ${{ (matrix.platform.shared-lib && format('{0} build/{1} | grep "Github Workflow"', matrix.platform.binutils-strings, matrix.platform.shared-lib)) || 'echo "<Shared library not supported by platform>"' }}
  234. echo "Static library:"
  235. ${{ (matrix.platform.static-lib && format('{0} build/{1} | grep "Github Workflow"', matrix.platform.binutils-strings, matrix.platform.static-lib)) || 'echo "<Static library not supported by platform>"' }}
  236. - name: 'Run build-time tests (CMake)'
  237. id: tests
  238. if: ${{ !matrix.platform.no-cmake && matrix.platform.run-tests }}
  239. # shell: ${{ matrix.platform.shell }}
  240. run: |
  241. ${{ matrix.platform.source-cmd }}
  242. ${{ matrix.platform.pretest-cmd }}
  243. set -eu
  244. export SDL_TESTS_QUICK=1
  245. ctest -VV --test-dir build/ -j2
  246. - name: "Build test apk's (CMake)"
  247. id: apks
  248. if: ${{ always() && steps.build.outcome == 'success' && matrix.platform.android-apks != '' }}
  249. # shell: ${{ matrix.platform.shell }}
  250. run: |
  251. ${{ matrix.platform.source-cmd }}
  252. cmake --build build --config ${{ matrix.platform.cmake-build-type }} \
  253. --target \
  254. ${{ matrix.platform.android-apks }} \
  255. --verbose \
  256. -- ${{ matrix.platform.cmake-build-arguments }}
  257. - name: 'Install (CMake)'
  258. id: install
  259. if: ${{ always() && steps.build.outcome == 'success' }}
  260. # shell: ${{ matrix.platform.shell }}
  261. run: |
  262. ${{ matrix.platform.source-cmd }}
  263. cmake --install build --config ${{ matrix.platform.cmake-build-type }}
  264. echo "prefix=$(pwd)/prefix" >> $GITHUB_OUTPUT
  265. ( cd prefix; find . ) | LC_ALL=C sort -u
  266. - name: 'Package (CPack)'
  267. id: package
  268. if: ${{ always() && steps.build.outcome == 'success' }}
  269. # shell: ${{ matrix.platform.shell }}
  270. run: |
  271. # DMG creation on macOS occasionally fails, so try multiple times
  272. # https://gitlab.kitware.com/cmake/cmake/-/issues/25671
  273. success=0
  274. max_tries=10
  275. for i in $(seq $max_tries); do
  276. cmake --build build/ --config ${{ matrix.platform.cmake-build-type }} --target package -- ${{ matrix.platform.cmake-build-arguments }} && success=1
  277. if test $success = 1; then
  278. break
  279. fi
  280. echo "Package creation failed. Sleep 1 second and try again."
  281. sleep 1
  282. done
  283. if test $success = 0; then
  284. echo "Package creation failed after $max_tries attempts."
  285. exit 1
  286. fi
  287. - name: 'Verify CMake configuration files'
  288. if: ${{ steps.install.outcome == 'success' }}
  289. # shell: ${{ matrix.platform.shell }}
  290. run: |
  291. ${{ matrix.platform.source-cmd }}
  292. ${{ matrix.platform.cmake-config-emulator }} cmake -S cmake/test -B cmake_test_build -GNinja \
  293. ${{ matrix.platform.cmake-toolchain-file != '' && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.platform.cmake-toolchain-file) || '' }} \
  294. -DTEST_SHARED=${{ matrix.platform.shared }} \
  295. -DTEST_STATIC=${{ matrix.platform.static }} \
  296. ${{ matrix.platform.cmake-arguments }} \
  297. -DCMAKE_BUILD_TYPE=${{ matrix.platform.cmake-build-type }} \
  298. -DCMAKE_PREFIX_PATH="${{ steps.install.outputs.prefix }}"
  299. cmake --build cmake_test_build --verbose --config ${{ matrix.platform.cmake-build-type }} -- ${{ matrix.platform.cmake-build-arguments }}
  300. - name: 'Extract CC/CXX/CFLAGS/CXXFLAGS from CMake toolchain'
  301. if: ${{ steps.install.outcome == 'success' && matrix.platform.cc-from-cmake }}
  302. # shell: ${{ matrix.platform.shell }}
  303. run: |
  304. cmake -S .github/cmake -B /tmp/cmake_extract \
  305. ${{ matrix.platform.cmake-toolchain-file != '' && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.platform.cmake-toolchain-file) || '' }} \
  306. -DCMAKE_BUILD_TYPE=${{ matrix.platform.cmake-build-type }} \
  307. -DVAR_PATH=/tmp/env.txt
  308. cat /tmp/env.txt >> $GITHUB_ENV
  309. - name: 'Verify sdl3.pc'
  310. # shell: ${{ matrix.platform.shell }}
  311. if: ${{ steps.install.outcome == 'success' && matrix.platform.test-pkg-config }}
  312. run: |
  313. ${{ matrix.platform.source-cmd }}
  314. ${{ matrix.platform.cc && format('export CC="{0}"', matrix.platform.cc) || '' }}
  315. ${{ matrix.platform.cflags && format('export CFLAGS="{0}"', matrix.platform.cflags) || '' }}
  316. ${{ matrix.platform.ldflags && format('export LDFLAGS="{0}"', matrix.platform.ldflags) || '' }}
  317. export PKG_CONFIG_PATH=${{ steps.install.outputs.prefix }}/lib/pkgconfig
  318. cmake/test/test_pkgconfig.sh
  319. - name: 'Build (cross-platform-actions, BSD)'
  320. id: cpactions
  321. if: ${{ matrix.platform.cpactions }}
  322. uses: cross-platform-actions/[email protected]
  323. with:
  324. operating_system: '${{ matrix.platform.cpactions-os }}'
  325. architecture: '${{ matrix.platform.cpactions-arch }}'
  326. version: '${{ matrix.platform.cpactions-version }}'
  327. run: |
  328. ${{ matrix.platform.cpactions-setup-cmd }}
  329. ${{ matrix.platform.cpactions-install-cmd }}
  330. cmake -S . -B build -GNinja \
  331. ${{ matrix.platform.cmake-toolchain-file != '' && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.platform.cmake-toolchain-file) || '' }} \
  332. -Wdeprecated -Wdev -Werror \
  333. -DSDL_WERROR=${{ matrix.platform.werror }} \
  334. -DSDL_INSTALL_DOCS=ON \
  335. ${{ matrix.platform.cmake-arguments }} \
  336. -DSDL_SHARED=${{ matrix.platform.shared }} \
  337. -DSDL_STATIC=${{ matrix.platform.static }} \
  338. -DSDL_VENDOR_INFO="Github Workflow" \
  339. -DCMAKE_INSTALL_PREFIX=prefix \
  340. -DCMAKE_INSTALL_LIBDIR=lib \
  341. -DCMAKE_BUILD_TYPE=${{ matrix.platform.cmake-build-type }}
  342. cmake --build build/ --config ${{ matrix.platform.cmake-build-type }} --verbose
  343. cmake --build build/ --config ${{ matrix.platform.cmake-build-type }} --target package
  344. cmake --build build/ --config ${{ matrix.platform.cmake-build-type }} --target clean
  345. rm -rf build/dist/_CPack_Packages
  346. rm -rf build/CMakeFiles
  347. rm -rf build/docs
  348. - name: Add msbuild to PATH
  349. id: setup-msbuild
  350. if: ${{ matrix.platform.msvc-project != '' }}
  351. uses: microsoft/setup-msbuild@v2
  352. - name: Build msbuild
  353. if: ${{ matrix.platform.msvc-project != '' }}
  354. run: |
  355. "$(cygpath -u '${{ steps.setup-msbuild.outputs.msbuildPath }}\msbuild.exe')" ${{ matrix.platform.msvc-project }} -m -p:BuildInParallel=true -p:Configuration=Release ${{ matrix.platform.msvc-project-flags }}
  356. - name: 'Build (Android.mk)'
  357. if: ${{ matrix.platform.android-mk }}
  358. run: |
  359. ./build-scripts/androidbuildlibs.sh
  360. - name: 'Create Gradle project (Android)'
  361. if: ${{ matrix.platform.android-gradle }}
  362. run: |
  363. for folder in build-ndk-build build-cmake; do
  364. python build-scripts/create-android-project.py \
  365. --output "${folder}" \
  366. --variant copy \
  367. org.libsdl.testspriteminimal \
  368. test/testspriteminimal.c test/icon.h
  369. done
  370. echo ""
  371. echo "Project contents:"
  372. echo ""
  373. find "build-ndk-build/org.libsdl.testspriteminimal"
  374. - name: 'Build Android app (Gradle & ndk-build)'
  375. if: ${{ matrix.platform.android-gradle }}
  376. run: |
  377. cd build-ndk-build/org.libsdl.testspriteminimal
  378. ./gradlew -i assembleRelease
  379. - name: 'Build Android app (Gradle & CMake)'
  380. if: ${{ matrix.platform.android-gradle }}
  381. run: |
  382. cd build-cmake/org.libsdl.testspriteminimal
  383. ./gradlew -i assembleRelease -PBUILD_WITH_CMAKE=1
  384. - name: 'Build (xcode)'
  385. if: ${{ matrix.platform.xcode-sdk != '' }}
  386. run: |
  387. xcodebuild -project Xcode/SDL/SDL.xcodeproj -target SDL3 -configuration Release -sdk ${{ matrix.platform.xcode-sdk }} clean build
  388. - name: 'Prune old ccache files'
  389. if: ${{ matrix.platform.ccache }}
  390. run: |
  391. ccache --evict-older-than=1d
  392. ccache -s
  393. - name: 'Save ccache'
  394. if: ${{ matrix.platform.ccache }}
  395. uses: actions/cache/save@v4
  396. with:
  397. path: ${{ runner.temp }}/ccache
  398. key: ${{ steps.restore-ccache.outputs.cache-primary-key }}
  399. - name: 'Check Sources'
  400. if: ${{ matrix.platform.check-sources }}
  401. run: |
  402. set -e
  403. build-scripts/test-versioning.sh
  404. python build-scripts/check_android_jni.py
  405. python build-scripts/check_stdlib_usage.py
  406. - name: 'Verify alignment of Android test apks'
  407. if: ${{ matrix.platform.android-ndk && !matrix.platform.no-cmake }}
  408. run: |
  409. find ./ -iname '*.apk' | xargs -L1 ./build-scripts/check_elf_alignment.sh
  410. - name: 'Verify alignment of Android .so files'
  411. if: ${{ matrix.platform.android-ndk && !matrix.platform.no-cmake }}
  412. run: |
  413. find ./ -iname '*.so' | xargs -L1 ./build-scripts/check_elf_alignment.sh
  414. - name: 'Upload binary package'
  415. uses: actions/upload-artifact@v4
  416. if: ${{ always() && matrix.platform.artifact != '' && (steps.package.outcome == 'success' || steps.cpactions.outcome == 'success') && (matrix.platform.enable-artifacts || steps.tests.outcome == 'failure') }}
  417. with:
  418. if-no-files-found: error
  419. name: '${{ matrix.platform.artifact }}'
  420. path: |
  421. build/dist/SDL3*
  422. build/include*
  423. - name: 'Upload minidumps'
  424. uses: actions/upload-artifact@v4
  425. if: ${{ always() && steps.tests.outcome == 'failure' && (matrix.platform.platform == 'msvc' || matrix.platform.platform == 'msys2') }}
  426. with:
  427. if-no-files-found: ignore
  428. name: '${{ matrix.platform.artifact }}-minidumps'
  429. path: build/**/*.dmp
  430. - name: "Upload Android test apk's"
  431. uses: actions/upload-artifact@v4
  432. if: ${{ matrix.platform.enable-artifacts && always() && matrix.platform.artifact != '' && steps.apks.outcome == 'success' }}
  433. with:
  434. if-no-files-found: error
  435. name: '${{ matrix.platform.artifact }}-apks'
  436. path: build/test/*.apk