github.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  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@v4
  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. # Workaround for gradle not discovering SDK that was installed via conan
  175. - name: Find Android NDK
  176. if: ${{ startsWith(matrix.platform, 'android') }}
  177. run: sudo ln -s -T /home/runner/.conan/data/android-ndk/r25c/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin /usr/local/lib/android/sdk/ndk/25.2.9519653
  178. - name: Install Java
  179. uses: actions/setup-java@v4
  180. if: ${{ startsWith(matrix.platform, 'android') }}
  181. with:
  182. distribution: 'temurin'
  183. java-version: '11'
  184. # a hack to build ID for x64 build in order for Google Play to allow upload of both 32 and 64 bit builds
  185. - name: Bump Android x64 build ID
  186. if: ${{ matrix.platform == 'android-64' }}
  187. run: perl -i -pe 's/versionCode (\d+)/$x=$1+1; "versionCode $x"/e' android/vcmi-app/build.gradle
  188. - name: Build Number
  189. run: |
  190. source '${{github.workspace}}/CI/get_package_name.sh'
  191. if [ '${{ matrix.artifact_platform }}' ]; then
  192. VCMI_PACKAGE_FILE_NAME+="-${{ matrix.artifact_platform }}"
  193. fi
  194. echo VCMI_PACKAGE_FILE_NAME="$VCMI_PACKAGE_FILE_NAME" >> $GITHUB_ENV
  195. echo VCMI_PACKAGE_BUILD="$VCMI_PACKAGE_BUILD" >> $GITHUB_ENV
  196. echo VCMI_PACKAGE_NAME_SUFFIX="$VCMI_PACKAGE_NAME_SUFFIX" >> $GITHUB_ENV
  197. echo VCMI_PACKAGE_GOLDMASTER="$VCMI_PACKAGE_GOLDMASTER" >> $GITHUB_ENV
  198. env:
  199. PULL_REQUEST: ${{ github.event.pull_request.number }}
  200. - name: Configure
  201. run: |
  202. if [[ (${{matrix.preset}} == android-conan-ninja-release) && (${{github.ref}} != 'refs/heads/master') ]]
  203. then
  204. cmake -DENABLE_CCACHE:BOOL=ON -DANDROID_GRADLE_PROPERTIES="applicationIdSuffix=.daily;signingConfig=dailySigning;applicationLabel=VCMI daily;applicationVariant=daily" --preset ${{ matrix.preset }}
  205. elif ${{startsWith(matrix.platform, 'msvc') }}
  206. then
  207. cmake --preset ${{ matrix.preset }}
  208. else
  209. cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }}
  210. fi
  211. - name: Build
  212. run: |
  213. cmake --build --preset ${{matrix.preset}}
  214. env:
  215. ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
  216. ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
  217. - name: Kill XProtect to work around CPack issue on macOS
  218. if: ${{ startsWith(matrix.platform, 'mac') }}
  219. run: |
  220. # Cf. https://github.com/actions/runner-images/issues/7522#issuecomment-1556766641
  221. echo Killing...; sudo pkill -9 XProtect >/dev/null || true;
  222. echo "Waiting..."; counter=0; while pgrep XProtect && ((counter < 20)); do sleep 3; ((counter++)); done
  223. pgrep XProtect || true
  224. - name: Pack
  225. id: cpack
  226. if: ${{ matrix.pack == 1 }}
  227. run: |
  228. cd '${{github.workspace}}/out/build/${{matrix.preset}}'
  229. # Workaround for CPack bug on macOS 13
  230. counter=0
  231. until cpack -C ${{matrix.pack_type}} || ((counter > 20)); do
  232. sleep 3
  233. ((counter++))
  234. done
  235. rm -rf _CPack_Packages
  236. - name: Find Android package
  237. if: ${{ startsWith(matrix.platform, 'android') }}
  238. run: |
  239. OUTPUT_DIRECTORY="${{ github.workspace }}/out/build/${{ matrix.preset }}/android-build/vcmi-app/build/outputs"
  240. mv "$OUTPUT_DIRECTORY/apk/release/vcmi-release.apk" "${{ github.workspace }}/$VCMI_PACKAGE_FILE_NAME.apk"
  241. mv "$OUTPUT_DIRECTORY/bundle/release/vcmi-release.aab" "${{ github.workspace }}/$VCMI_PACKAGE_FILE_NAME.aab"
  242. - name: Upload Artifact
  243. if: ${{ matrix.pack == 1 }}
  244. uses: actions/upload-artifact@v4
  245. with:
  246. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
  247. compression-level: 0
  248. path: |
  249. ${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.${{ matrix.extension }}
  250. - name: Upload AAB Artifact
  251. if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/master' }}
  252. uses: actions/upload-artifact@v4
  253. with:
  254. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab
  255. compression-level: 0
  256. path: |
  257. ${{github.workspace}}/out/build/${{matrix.preset}}/${{ env.VCMI_PACKAGE_FILE_NAME }}.aab
  258. - name: Upload debug symbols
  259. if: ${{ startsWith(matrix.platform, 'msvc') }}
  260. uses: actions/upload-artifact@v4
  261. with:
  262. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - symbols
  263. compression-level: 9
  264. path: |
  265. ${{github.workspace}}/**/*.pdb
  266. - name: Upload build to download.vcmi.eu
  267. if: ${{ matrix.upload == 1 && github.event.number == '' && env.DEPLOY_RSA != '' }}
  268. run: |
  269. if [ -z '${{ env.ANDROID_APK_PATH }}' ] ; then
  270. cd '${{github.workspace}}/out/build/${{matrix.preset}}'
  271. fi
  272. source '${{github.workspace}}/CI/upload_package.sh'
  273. env:
  274. DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}
  275. PACKAGE_EXTENSION: ${{ matrix.extension }}
  276. upload-source-package:
  277. name: Upload Source Code Package
  278. if: always() && github.event.number == ''
  279. runs-on: ubuntu-24.04
  280. defaults:
  281. run:
  282. shell: bash
  283. steps:
  284. - uses: actions/checkout@v4
  285. with:
  286. submodules: recursive
  287. - name: Build Number
  288. run: |
  289. source '${{github.workspace}}/CI/get_package_name.sh'
  290. echo VCMI_PACKAGE_FILE_NAME="$VCMI_PACKAGE_FILE_NAME" >> $GITHUB_ENV
  291. - name: Create source code archive (including submodules)
  292. run: |
  293. git archive HEAD -o "release.tar" --worktree-attributes -v
  294. git submodule update --init --recursive
  295. git submodule --quiet foreach 'cd "$toplevel"; tar -rvf "release.tar" "$sm_path"'
  296. gzip release.tar
  297. - name: Upload source code archive
  298. uses: actions/upload-artifact@v4
  299. with:
  300. name: ${{ env.VCMI_PACKAGE_FILE_NAME }}
  301. compression-level: 0
  302. path: |
  303. ./release.tar.gz
  304. test:
  305. continue-on-error: true
  306. name: Test (${{ matrix.platform }})
  307. strategy:
  308. matrix:
  309. include:
  310. - platform: gcc-latest-release
  311. os: ubuntu-24.04
  312. before_install: linux_qt6.sh
  313. compiler_cxx: g++-14
  314. compiler_cc: gcc-14
  315. preset: linux-gcc-test
  316. - platform: clang-latest-debug
  317. os: ubuntu-24.04
  318. before_install: linux_qt6.sh
  319. compiler_cxx: clang++-18
  320. compiler_cc: clang-18
  321. preset: linux-clang-debug
  322. - platform: gcc-oldest-debug
  323. os: ubuntu-22.04
  324. before_install: linux_qt5.sh
  325. compiler_cxx: g++-10
  326. compiler_cc: gcc-10
  327. preset: linux-gcc-debug
  328. - platform: clang-oldest-release
  329. os: ubuntu-22.04
  330. before_install: linux_qt5.sh
  331. compiler_cxx: clang++-13
  332. compiler_cc: clang-13
  333. preset: linux-clang-test
  334. runs-on: ${{ matrix.os }}
  335. defaults:
  336. run:
  337. shell: bash
  338. steps:
  339. - name: Checkout repository
  340. uses: actions/checkout@v4
  341. with:
  342. submodules: recursive
  343. - name: Prepare CI
  344. run: source '${{github.workspace}}/CI/before_install/${{matrix.before_install}}'
  345. - name: Install ccache for PRs
  346. uses: hendrikmuhs/[email protected]
  347. if: ${{ github.event.number != '' }}
  348. with:
  349. key: ${{ matrix.platform }}-PR-${{ github.event.number }}
  350. restore-keys: |
  351. ${{ matrix.platform }}-PR-${{ github.event.number }}
  352. ${{ matrix.platform }}-branch-${{ github.base_ref }}
  353. max-size: "5G"
  354. verbose: 2
  355. - name: Install ccache for branch builds
  356. uses: hendrikmuhs/[email protected]
  357. if: ${{ github.event.number == '' }}
  358. with:
  359. key: ${{ matrix.platform }}-${{ github.ref_name }}
  360. restore-keys: |
  361. ${{ matrix.platform }}-branch-${{ github.ref_name }}
  362. max-size: "5G"
  363. verbose: 2
  364. - name: Prepare Heroes 3 data
  365. env:
  366. HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
  367. if: ${{ env.HEROES_3_DATA_PASSWORD != '' }}
  368. run: |
  369. if [[ ${{github.repository_owner}} == vcmi ]]
  370. then
  371. data_url="https://github.com/vcmi-mods/vcmi-test-data/releases/download/v1.0/h3_assets.zip"
  372. else
  373. data_url="https://github.com/${{github.repository_owner}}/vcmi-test-data/releases/download/v1.0/h3_assets.zip"
  374. fi
  375. wget --progress=dot:giga "$data_url" -O h3_assets.zip
  376. 7za x h3_assets.zip -p$HEROES_3_DATA_PASSWORD
  377. mkdir -p ~/.local/share/vcmi/
  378. mv h3_assets/* ~/.local/share/vcmi/
  379. - name: Configure
  380. run: |
  381. cmake -DENABLE_CCACHE:BOOL=ON -DCMAKE_C_COMPILER=${{ matrix.compiler_cc }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler_cxx }} --preset ${{ matrix.preset }}
  382. - name: Build
  383. run: |
  384. cmake --build --preset ${{matrix.preset}}
  385. - name: Test
  386. env:
  387. HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }}
  388. if: ${{ env.HEROES_3_DATA_PASSWORD != '' }}
  389. run: |
  390. ctest --preset ${{matrix.preset}}
  391. windows-installer:
  392. needs: build
  393. name: Create Windows Installer (${{ matrix.arch }})
  394. strategy:
  395. matrix:
  396. include:
  397. - platform: msvc-x64
  398. arch: x64
  399. os: windows-2025
  400. - platform: msvc-x86
  401. arch: x86
  402. os: windows-2025
  403. - platform: msvc-arm64
  404. arch: arm64
  405. os: windows-11-arm
  406. runs-on: ${{ matrix.os }}
  407. defaults:
  408. run:
  409. shell: bash
  410. steps:
  411. - name: Checkout repository
  412. uses: actions/checkout@v4
  413. with:
  414. submodules: recursive
  415. - name: Extract version info
  416. id: extract-version
  417. shell: bash
  418. run: |
  419. filePath="${GITHUB_WORKSPACE}/cmake_modules/VersionDefinition.cmake"
  420. major=$(grep -m 1 "VCMI_VERSION_MAJOR" "$filePath" | tr -d -c 0-9)
  421. minor=$(grep -m 1 "VCMI_VERSION_MINOR" "$filePath" | tr -d -c 0-9)
  422. patch=$(grep -m 1 "VCMI_VERSION_PATCH" "$filePath" | tr -d -c 0-9)
  423. short_version="${major}.${minor}.${patch}"
  424. version_timestamp=$(date +"%Y%m%d%H%M%S")
  425. echo "short_version=${short_version}" >> "$GITHUB_OUTPUT"
  426. echo "version_timestamp=${version_timestamp}" >> "$GITHUB_OUTPUT"
  427. - name: Install vcpkg Dependencies
  428. run: source '${{github.workspace}}/CI/install_vcpkg_dependencies.sh' '${{matrix.platform}}'
  429. - name: Build Number
  430. run: |
  431. source '${{github.workspace}}/CI/get_package_name.sh'
  432. VCMI_PACKAGE_FILE_NAME+="-${{ matrix.arch }}"
  433. echo VCMI_PACKAGE_FILE_NAME="$VCMI_PACKAGE_FILE_NAME" >> $GITHUB_ENV
  434. echo VCMI_PACKAGE_BUILD="$VCMI_PACKAGE_BUILD" >> $GITHUB_ENV
  435. echo VCMI_PACKAGE_NAME_SUFFIX="$VCMI_PACKAGE_NAME_SUFFIX" >> $GITHUB_ENV
  436. echo VCMI_PACKAGE_GOLDMASTER="$VCMI_PACKAGE_GOLDMASTER" >> $GITHUB_ENV
  437. env:
  438. PULL_REQUEST: ${{ github.event.pull_request.number }}
  439. - name: Download Artifact
  440. uses: actions/download-artifact@v4
  441. with:
  442. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
  443. path: ${{github.workspace}}/artifact
  444. - name: Extract Artifact
  445. shell: bash
  446. run: |
  447. mkdir artifact/extracted
  448. unzip "artifact/${{ env.VCMI_PACKAGE_FILE_NAME }}.zip" -d artifact/extracted
  449. - name: Ensure Inno Setup is installed
  450. shell: bash
  451. run: |
  452. if [ ! -f "/c/Program Files (x86)/Inno Setup 6/ISCC.exe" ] && [ ! -f "/c/ProgramData/Chocolatey/bin/ISCC.exe" ]; then
  453. choco install innosetup --no-progress -y
  454. fi
  455. - name: Build VCMI Installer
  456. run: >
  457. CI\wininstaller\build_installer.cmd
  458. "${{ steps.extract-version.outputs.short_version }}"
  459. "${{ env.VCMI_PACKAGE_BUILD }}"
  460. "${{ matrix.arch }}"
  461. "VCMI ${{ env.VCMI_PACKAGE_NAME_SUFFIX }}"
  462. "${{ env.VCMI_PACKAGE_FILE_NAME }}"
  463. "${{ github.workspace }}\artifact\extracted"
  464. "${{ github.workspace }}\ucrt"
  465. shell: cmd
  466. - name: Upload VCMI Installer Artifacts
  467. uses: actions/upload-artifact@v4
  468. with:
  469. name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - installer
  470. compression-level: 0
  471. path: |
  472. ${{ github.workspace }}/CI/wininstaller/Output/*.exe
  473. - name: Upload Installer
  474. if: ${{ github.event.number == '' && env.DEPLOY_RSA != '' }}
  475. run: |
  476. cd '${{github.workspace}}/CI/wininstaller/Output'
  477. source '${{github.workspace}}/CI/upload_package.sh'
  478. env:
  479. DEPLOY_RSA: ${{ secrets.DEPLOY_RSA }}
  480. PACKAGE_EXTENSION: exe
  481. validate-code:
  482. name: Validate Code
  483. if: always()
  484. runs-on: ubuntu-latest
  485. defaults:
  486. run:
  487. shell: bash
  488. steps:
  489. - uses: actions/checkout@v4
  490. - name: Ensure LF line endings
  491. run: |
  492. find . -path ./.git -prune -o -path ./AI/FuzzyLite -prune -o -path ./test/googletest \
  493. -o -path ./osx -prune -o -type f \
  494. -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 | \
  495. { ! xargs -0 grep -l -z -P '\r\n'; }
  496. - name: Validate JSON
  497. run: |
  498. sudo apt install python3-jstyleson
  499. python3 CI/validate_json.py
  500. - name: Validate Markdown
  501. uses: DavidAnson/markdownlint-cli2-action@v20
  502. with:
  503. config: 'CI/example.markdownlint-cli2.jsonc'
  504. globs: '**/*.md'