github.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. name: VCMI
  2. on:
  3. push:
  4. branches:
  5. - beta
  6. - master
  7. - develop
  8. pull_request:
  9. workflow_dispatch:
  10. jobs:
  11. build:
  12. name: Build (${{ matrix.platform }})
  13. strategy:
  14. matrix:
  15. include:
  16. - platform: mac-intel
  17. os: macos-13
  18. pack: 1
  19. upload: 1
  20. pack_type: Release
  21. extension: dmg
  22. before_install: macos.sh
  23. preset: macos-conan-ninja-release
  24. conan_profile: macos-intel
  25. conan_prebuilts: dependencies-mac-intel
  26. conan_options: --options with_apple_system_libs=True
  27. artifact_platform: intel
  28. - platform: mac-arm
  29. os: macos-13
  30. pack: 1
  31. upload: 1
  32. pack_type: Release
  33. extension: dmg
  34. before_install: macos.sh
  35. preset: macos-arm-conan-ninja-release
  36. conan_profile: macos-arm
  37. conan_prebuilts: dependencies-mac-arm
  38. conan_options: --options with_apple_system_libs=True
  39. artifact_platform: arm
  40. - platform: ios
  41. os: macos-13
  42. pack: 1
  43. upload: 1
  44. pack_type: Release
  45. extension: ipa
  46. before_install: macos.sh
  47. preset: ios-release-conan-ccache
  48. conan_profile: ios-arm64
  49. conan_prebuilts: dependencies-ios
  50. conan_options: --options with_apple_system_libs=True
  51. - platform: msvc-x64
  52. arch: x64
  53. os: windows-2025
  54. pack: 1
  55. upload: 0
  56. pack_type: RelWithDebInfo
  57. extension: zip
  58. before_install: msvc.sh
  59. preset: windows-msvc-release
  60. artifact_platform: x64
  61. - platform: msvc-x86
  62. arch: x86
  63. os: windows-2025
  64. pack: 1
  65. upload: 0
  66. pack_type: RelWithDebInfo
  67. extension: zip
  68. before_install: msvc.sh
  69. preset: windows-msvc-release-x86
  70. artifact_platform: x86
  71. - platform: msvc-arm64
  72. arch: arm64
  73. os: windows-11-arm
  74. pack: 1
  75. upload: 0
  76. pack_type: RelWithDebInfo
  77. extension: zip
  78. before_install: msvc.sh
  79. preset: windows-msvc-release-arm64
  80. artifact_platform: arm64
  81. - platform: mingw_x86_64
  82. os: ubuntu-24.04
  83. pack: 1
  84. pack_type: Release
  85. extension: zip
  86. cmake_args: -G Ninja
  87. before_install: mingw.sh
  88. preset: windows-mingw-conan-linux
  89. conan_profile: mingw64-linux.jinja
  90. conan_prebuilts: dependencies-mingw-x86-64
  91. - platform: mingw_x86
  92. os: ubuntu-24.04
  93. pack: 1
  94. pack_type: Release
  95. extension: zip
  96. cmake_args: -G Ninja
  97. before_install: mingw.sh
  98. preset: windows-mingw-conan-linux
  99. conan_profile: mingw32-linux.jinja
  100. conan_prebuilts: dependencies-mingw-x86
  101. - platform: android-32
  102. os: ubuntu-24.04
  103. upload: 1
  104. extension: apk
  105. preset: android-conan-ninja-release
  106. before_install: android.sh
  107. conan_profile: android-32-ndk
  108. conan_prebuilts: dependencies-android-armeabi-v7a
  109. artifact_platform: armeabi-v7a
  110. - platform: android-64
  111. os: ubuntu-24.04
  112. upload: 1
  113. extension: apk
  114. preset: android-conan-ninja-release
  115. before_install: android.sh
  116. conan_profile: android-64-ndk
  117. conan_prebuilts: dependencies-android-arm64-v8a
  118. artifact_platform: arm64-v8a
  119. runs-on: ${{ matrix.os }}
  120. defaults:
  121. run:
  122. shell: bash
  123. steps:
  124. - name: Checkout repository
  125. uses: actions/checkout@v5
  126. with:
  127. submodules: recursive
  128. - name: Prepare CI
  129. if: "${{ matrix.before_install != '' }}"
  130. run: source '${{github.workspace}}/CI/before_install/${{matrix.before_install}}'
  131. - name: Install Conan Dependencies
  132. if: "${{ matrix.conan_prebuilts != '' }}"
  133. run: source '${{github.workspace}}/CI/install_conan_dependencies.sh' '${{matrix.conan_prebuilts}}'
  134. - name: Install vcpkg Dependencies
  135. if: ${{ startsWith(matrix.platform, 'msvc') }}
  136. run: source '${{github.workspace}}/CI/install_vcpkg_dependencies.sh' '${{matrix.platform}}'
  137. # ensure the ccache for each PR is separate so they don't interfere with each other
  138. # fall back to ccache of the vcmi/vcmi repo if no PR-specific ccache is found
  139. - name: Install ccache for PRs
  140. uses: hendrikmuhs/[email protected]
  141. if: ${{ github.event.number != '' && !startsWith(matrix.platform, 'msvc') }}
  142. with:
  143. key: ${{ matrix.platform }}-PR-${{ github.event.number }}
  144. restore-keys: |
  145. ${{ matrix.platform }}-PR-${{ github.event.number }}
  146. ${{ matrix.platform }}-branch-${{ github.base_ref }}
  147. max-size: "5G"
  148. verbose: 2
  149. - name: Install ccache for branch builds
  150. uses: hendrikmuhs/[email protected]
  151. if: ${{ github.event.number == '' && !startsWith(matrix.platform, 'msvc')}}
  152. with:
  153. key: ${{ matrix.platform }}-${{ github.ref_name }}
  154. restore-keys: |
  155. ${{ matrix.platform }}-branch-${{ github.ref_name }}
  156. max-size: "5G"
  157. verbose: 2
  158. - name: Install Conan
  159. if: "${{ matrix.conan_profile != '' }}"
  160. run: pipx install 'conan<2.0'
  161. - name: Install Conan profile
  162. if: "${{ matrix.conan_profile != '' }}"
  163. run: |
  164. conan profile new default --detect
  165. conan install . \
  166. --install-folder=conan-generated \
  167. --no-imports \
  168. --build=never \
  169. --profile:build=default \
  170. --profile:host=CI/conan/${{ matrix.conan_profile }} \
  171. ${{ matrix.conan_options }}
  172. env:
  173. GENERATE_ONLY_BUILT_CONFIG: 1
  174. # Can't be set in Gradle project
  175. - name: Configure enableUncompressedNativeLibs
  176. if: ${{ startsWith(matrix.platform, 'android') }}
  177. run: mkdir -p ~/.gradle && echo "android.bundle.enableUncompressedNativeLibs=true" > ~/.gradle/gradle.properties
  178. # Workaround for gradle not discovering SDK that was installed via conan
  179. - name: Find Android NDK
  180. if: ${{ startsWith(matrix.platform, 'android') }}
  181. run: sudo ln -s -T /home/runner/.conan/data/android-ndk/r25c/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin /usr/local/lib/android/sdk/ndk/25.2.9519653
  182. - name: Install Java
  183. uses: actions/setup-java@v4
  184. if: ${{ startsWith(matrix.platform, 'android') }}
  185. with:
  186. distribution: 'temurin'
  187. java-version: '17'
  188. # a hack to build ID for x64 build in order for Google Play to allow upload of both 32 and 64 bit builds
  189. - name: Bump Android x64 build ID
  190. if: ${{ matrix.platform == 'android-64' }}
  191. run: perl -i -pe 's/versionCode (\d+)/$x=$1+1; "versionCode $x"/e' android/vcmi-app/build.gradle
  192. - name: Build Number
  193. run: |
  194. source '${{github.workspace}}/CI/get_package_name.sh'
  195. if [ '${{ matrix.artifact_platform }}' ]; then
  196. VCMI_PACKAGE_FILE_NAME+="-${{ matrix.artifact_platform }}"
  197. fi
  198. echo VCMI_PACKAGE_FILE_NAME="$VCMI_PACKAGE_FILE_NAME" >> $GITHUB_ENV
  199. echo VCMI_PACKAGE_BUILD="$VCMI_PACKAGE_BUILD" >> $GITHUB_ENV
  200. echo VCMI_PACKAGE_NAME_SUFFIX="$VCMI_PACKAGE_NAME_SUFFIX" >> $GITHUB_ENV
  201. echo VCMI_PACKAGE_GOLDMASTER="$VCMI_PACKAGE_GOLDMASTER" >> $GITHUB_ENV
  202. env:
  203. PULL_REQUEST: ${{ github.event.pull_request.number }}
  204. - name: Configure
  205. run: |
  206. if [[ (${{matrix.preset}} == android-conan-ninja-release) && (${{github.ref}} != 'refs/heads/master') ]]
  207. then
  208. cmake -DENABLE_CCACHE:BOOL=ON -DANDROID_GRADLE_PROPERTIES="applicationIdSuffix=.daily;signingConfig=dailySigning;applicationLabel=VCMI daily;applicationVariant=daily" --preset ${{ matrix.preset }}
  209. elif ${{startsWith(matrix.platform, 'msvc') }}
  210. then
  211. cmake --preset ${{ matrix.preset }}
  212. else
  213. cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }}
  214. fi
  215. - name: Build
  216. run: |
  217. cmake --build --preset ${{matrix.preset}}
  218. env:
  219. ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
  220. ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
  221. - name: Kill XProtect to work around CPack issue on macOS
  222. if: ${{ startsWith(matrix.platform, 'mac') }}
  223. run: |
  224. # Cf. https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641
  225. echo Killing...; sudo pkill -9 XProtect >/dev/null || true;
  226. echo "Waiting..."; counter=0; while pgrep XProtect && ((counter < 20)); do sleep 3; ((counter++)); done
  227. pgrep XProtect || true
  228. - name: Pack
  229. id: cpack
  230. if: ${{ matrix.pack == 1 }}
  231. run: |
  232. cd '${{github.workspace}}/out/build/${{matrix.preset}}'
  233. # Workaround for CPack bug on macOS 13
  234. counter=0
  235. until cpack -C ${{matrix.pack_type}} || ((counter > 20)); do
  236. sleep 3
  237. ((counter++))
  238. done
  239. rm -rf _CPack_Packages
  240. - name: Find Android package
  241. if: ${{ startsWith(matrix.platform, 'android') }}
  242. run: |
  243. OUTPUT_DIRECTORY="${{ github.workspace }}/out/build/${{ matrix.preset }}/android-build/vcmi-app/build/outputs"
  244. mv "$OUTPUT_DIRECTORY/apk/release/vcmi-release.apk" "${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.apk"
  245. mv "$OUTPUT_DIRECTORY/bundle/release/vcmi-release.aab" "${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.aab"
  246. - name: Upload Artifact
  247. uses: actions/upload-artifact@v4
  248. with:
  249. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
  250. compression-level: 0
  251. path: |
  252. ${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.${{ matrix.extension }}
  253. - name: Upload AAB Artifact
  254. if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/master' }}
  255. uses: actions/upload-artifact@v4
  256. with:
  257. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab
  258. compression-level: 0
  259. path: |
  260. ${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.aab
  261. - name: Upload debug symbols
  262. if: ${{ startsWith(matrix.platform, 'msvc') }}
  263. uses: actions/upload-artifact@v4
  264. with:
  265. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - symbols
  266. compression-level: 9
  267. path: |
  268. ${{github.workspace}}/**/*.pdb
  269. - name: Upload build to download.vcmi.eu
  270. if: ${{ matrix.upload == 1 && github.event.number == '' && env.DEPLOY_RSA != '' }}
  271. run: |
  272. if [ -z '${{ env.ANDROID_APK_PATH }}' ] ; then
  273. cd '${{github.workspace}}/out/build/${{matrix.preset}}'
  274. fi
  275. source '${{github.workspace}}/CI/upload_package.sh'
  276. env:
  277. DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}
  278. PACKAGE_EXTENSION: ${{ matrix.extension }}
  279. upload-source-package:
  280. name: Upload Source Code Package
  281. if: always() && github.event.number == ''
  282. runs-on: ubuntu-24.04
  283. defaults:
  284. run:
  285. shell: bash
  286. steps:
  287. - uses: actions/checkout@v5
  288. with:
  289. submodules: recursive
  290. - name: Build Number
  291. run: |
  292. source '${{github.workspace}}/CI/get_package_name.sh'
  293. echo VCMI_PACKAGE_FILE_NAME="$VCMI_PACKAGE_FILE_NAME" >> $GITHUB_ENV
  294. - name: Create source code archive (including submodules)
  295. run: |
  296. git archive HEAD -o "release.tar" --worktree-attributes -v
  297. git submodule update --init --recursive
  298. git submodule --quiet foreach 'cd "$toplevel"; tar -rvf "release.tar" "$sm_path"'
  299. gzip release.tar
  300. - name: Upload source code archive
  301. uses: actions/upload-artifact@v4
  302. with:
  303. name: ${{ env.VCMI_PACKAGE_FILE_NAME }}
  304. compression-level: 0
  305. path: |
  306. ./release.tar.gz
  307. test:
  308. continue-on-error: true
  309. name: Test (${{ matrix.platform }})
  310. strategy:
  311. matrix:
  312. include:
  313. - platform: gcc-latest-release
  314. os: ubuntu-24.04
  315. before_install: linux_qt6.sh
  316. compiler_cxx: g++-14
  317. compiler_cc: gcc-14
  318. preset: linux-gcc-test
  319. - platform: clang-latest-debug
  320. os: ubuntu-24.04
  321. before_install: linux_qt6.sh
  322. compiler_cxx: clang++-18
  323. compiler_cc: clang-18
  324. preset: linux-clang-debug
  325. - platform: gcc-oldest-debug
  326. os: ubuntu-22.04
  327. before_install: linux_qt5.sh
  328. compiler_cxx: g++-10
  329. compiler_cc: gcc-10
  330. preset: linux-gcc-debug
  331. - platform: clang-oldest-release
  332. os: ubuntu-22.04
  333. before_install: linux_qt5.sh
  334. compiler_cxx: clang++-13
  335. compiler_cc: clang-13
  336. preset: linux-clang-test
  337. runs-on: ${{ matrix.os }}
  338. defaults:
  339. run:
  340. shell: bash
  341. steps:
  342. - name: Checkout repository
  343. uses: actions/checkout@v5
  344. with:
  345. submodules: recursive
  346. - name: Prepare CI
  347. run: source '${{github.workspace}}/CI/before_install/${{matrix.before_install}}'
  348. - name: Install ccache for PRs
  349. uses: hendrikmuhs/[email protected]
  350. if: ${{ github.event.number != '' }}
  351. with:
  352. key: ${{ matrix.platform }}-PR-${{ github.event.number }}
  353. restore-keys: |
  354. ${{ matrix.platform }}-PR-${{ github.event.number }}
  355. ${{ matrix.platform }}-branch-${{ github.base_ref }}
  356. max-size: "5G"
  357. verbose: 2
  358. - name: Install ccache for branch builds
  359. uses: hendrikmuhs/[email protected]
  360. if: ${{ github.event.number == '' }}
  361. with:
  362. key: ${{ matrix.platform }}-${{ github.ref_name }}
  363. restore-keys: |
  364. ${{ matrix.platform }}-branch-${{ github.ref_name }}
  365. max-size: "5G"
  366. verbose: 2
  367. - name: Prepare Heroes 3 data
  368. env:
  369. HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
  370. if: ${{ env.HEROES_3_DATA_PASSWORD != '' }}
  371. run: |
  372. if [[ ${{github.repository_owner}} == vcmi ]]
  373. then
  374. data_url="https://github.com/vcmi-mods/vcmi-test-data/releases/download/v1.0/h3_assets.zip"
  375. else
  376. data_url="https://github.com/${{github.repository_owner}}/vcmi-test-data/releases/download/v1.0/h3_assets.zip"
  377. fi
  378. wget --progress=dot:giga "$data_url" -O h3_assets.zip
  379. 7za x h3_assets.zip -p$HEROES_3_DATA_PASSWORD
  380. mkdir -p ~/.local/share/vcmi/
  381. mv h3_assets/* ~/.local/share/vcmi/
  382. - name: Configure
  383. run: |
  384. cmake -DENABLE_CCACHE:BOOL=ON -DCMAKE_C_COMPILER=${{ matrix.compiler_cc }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler_cxx }} --preset ${{ matrix.preset }}
  385. - name: Build
  386. run: |
  387. cmake --build --preset ${{matrix.preset}}
  388. - name: Test
  389. env:
  390. HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
  391. if: ${{ env.HEROES_3_DATA_PASSWORD != '' }}
  392. run: |
  393. ctest --preset ${{matrix.preset}}
  394. windows-installer:
  395. needs: build
  396. name: Create Windows Installer (${{ matrix.arch }})
  397. strategy:
  398. matrix:
  399. include:
  400. - platform: msvc-x64
  401. arch: x64
  402. os: windows-2025
  403. - platform: msvc-x86
  404. arch: x86
  405. os: windows-2025
  406. - platform: msvc-arm64
  407. arch: arm64
  408. os: windows-11-arm
  409. runs-on: ${{ matrix.os }}
  410. defaults:
  411. run:
  412. shell: bash
  413. steps:
  414. - name: Checkout repository
  415. uses: actions/checkout@v5
  416. with:
  417. submodules: recursive
  418. - name: Extract version info
  419. id: extract-version
  420. shell: bash
  421. run: |
  422. filePath="${GITHUB_WORKSPACE}/cmake_modules/VersionDefinition.cmake"
  423. major=$(grep -m 1 "VCMI_VERSION_MAJOR" "$filePath" | tr -d -c 0-9)
  424. minor=$(grep -m 1 "VCMI_VERSION_MINOR" "$filePath" | tr -d -c 0-9)
  425. patch=$(grep -m 1 "VCMI_VERSION_PATCH" "$filePath" | tr -d -c 0-9)
  426. short_version="${major}.${minor}.${patch}"
  427. version_timestamp=$(date +"%Y%m%d%H%M%S")
  428. echo "short_version=${short_version}" >> "$GITHUB_OUTPUT"
  429. echo "version_timestamp=${version_timestamp}" >> "$GITHUB_OUTPUT"
  430. - name: Install vcpkg Dependencies
  431. run: source '${{github.workspace}}/CI/install_vcpkg_dependencies.sh' '${{matrix.platform}}'
  432. - name: Build Number
  433. run: |
  434. source '${{github.workspace}}/CI/get_package_name.sh'
  435. VCMI_PACKAGE_FILE_NAME+="-${{ matrix.arch }}"
  436. echo VCMI_PACKAGE_FILE_NAME="$VCMI_PACKAGE_FILE_NAME" >> $GITHUB_ENV
  437. echo VCMI_PACKAGE_BUILD="$VCMI_PACKAGE_BUILD" >> $GITHUB_ENV
  438. echo VCMI_PACKAGE_NAME_SUFFIX="$VCMI_PACKAGE_NAME_SUFFIX" >> $GITHUB_ENV
  439. echo VCMI_PACKAGE_GOLDMASTER="$VCMI_PACKAGE_GOLDMASTER" >> $GITHUB_ENV
  440. env:
  441. PULL_REQUEST: ${{ github.event.pull_request.number }}
  442. - name: Download Artifact
  443. uses: actions/download-artifact@v5
  444. with:
  445. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
  446. path: ${{github.workspace}}/artifact
  447. - name: Extract Artifact
  448. shell: bash
  449. run: |
  450. mkdir artifact/extracted
  451. unzip "artifact/${{ env.VCMI_PACKAGE_FILE_NAME }}.zip" -d artifact/extracted
  452. - name: Ensure Inno Setup is installed
  453. shell: bash
  454. run: |
  455. if [ ! -f "/c/Program Files (x86)/Inno Setup 6/ISCC.exe" ] && [ ! -f "/c/ProgramData/Chocolatey/bin/ISCC.exe" ]; then
  456. choco install innosetup --no-progress -y
  457. fi
  458. - name: Build VCMI Installer
  459. run: >
  460. CI\wininstaller\build_installer.cmd
  461. "${{ steps.extract-version.outputs.short_version }}"
  462. "${{ env.VCMI_PACKAGE_BUILD }}"
  463. "${{ matrix.arch }}"
  464. "VCMI ${{ env.VCMI_PACKAGE_NAME_SUFFIX }}"
  465. "${{ env.VCMI_PACKAGE_FILE_NAME }}"
  466. "${{ github.workspace }}\artifact\extracted"
  467. "${{ github.workspace }}\ucrt"
  468. shell: cmd
  469. - name: Upload VCMI Installer Artifacts
  470. uses: actions/upload-artifact@v4
  471. with:
  472. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - installer
  473. compression-level: 0
  474. path: |
  475. ${{ github.workspace }}/CI/wininstaller/Output/*.exe
  476. - name: Upload Installer
  477. if: ${{ github.event.number == '' && env.DEPLOY_RSA != '' }}
  478. run: |
  479. cd '${{github.workspace}}/CI/wininstaller/Output'
  480. source '${{github.workspace}}/CI/upload_package.sh'
  481. env:
  482. DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}
  483. PACKAGE_EXTENSION: exe
  484. validate-code:
  485. name: Validate Code
  486. if: always()
  487. runs-on: ubuntu-latest
  488. defaults:
  489. run:
  490. shell: bash
  491. steps:
  492. - uses: actions/checkout@v5
  493. - name: Ensure LF line endings
  494. run: |
  495. find . -path ./.git -prune -o -path ./AI/FuzzyLite -prune -o -path ./test/googletest \
  496. -o -path ./osx -prune -o -type f \
  497. -not -name '*.png' -and -not -name '*.ttf' -and -not -name '*.wav' -and -not -name '*.webm' -and -not -name '*.ico' -and -not -name '*.bat' -and -not -name '*.cmd' -and -not -name '*.iss' -and -not -name '*.isl' -print0 | \
  498. { ! xargs -0 grep -l -z -P '\r\n'; }
  499. - name: Validate JSON
  500. run: |
  501. sudo apt install python3-jstyleson
  502. python3 CI/validate_json.py
  503. - name: Validate Markdown
  504. uses: DavidAnson/markdownlint-cli2-action@v20
  505. with:
  506. config: 'CI/example.markdownlint-cli2.jsonc'
  507. globs: '**/*.md'