cmake.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. name: CMake
  2. on:
  3. release:
  4. types: [ published ]
  5. workflow_dispatch:
  6. permissions:
  7. contents: read
  8. jobs:
  9. formatting:
  10. name: Formatting check
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  14. - name: Run clang-format style check for C/C++ programs.
  15. uses: jidicula/clang-format-action@654a770daa28443dd111d133e4083e21c1075674 # v4.18.0
  16. with:
  17. check-path: "src"
  18. exclude-regex: "(src/External)"
  19. - run: echo "Formatted with clang-format version ${{ steps.clang-format.outputs.clang-format-version }}"
  20. tests:
  21. #needs: formatting
  22. env:
  23. BUILD_TYPE: Release
  24. strategy:
  25. matrix:
  26. os: [ubuntu-24.04]
  27. # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
  28. # You can convert this to a matrix build if you need cross-platform coverage.
  29. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
  30. runs-on: ${{ matrix.os }}
  31. steps:
  32. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  33. with:
  34. submodules: true
  35. # cache some build information
  36. - name: ccache
  37. uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
  38. with:
  39. key: ${{ github.job }}-${{ matrix.os }}
  40. - name: Install dependencies
  41. run: sudo apt-get update && sudo apt-get -y install libgl-dev libglew-dev freeglut3-dev libsdl2-dev liblz4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libglm-dev libglfw3-dev libmpv-dev mpv libmpv2 libfftw3-dev libfreetype-dev libdbus-1-dev libnode-dev
  42. - name: Configure CMake
  43. # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
  44. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
  45. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=1 -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
  46. - name: Build
  47. # Build your program with the given configuration
  48. run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target tests --verbose
  49. - name: Run tests
  50. # Run the unit tests available
  51. run: ${{github.workspace}}/build/output/tests
  52. build:
  53. needs: tests
  54. strategy:
  55. matrix:
  56. include:
  57. - build_type: Release
  58. variant: kde
  59. disable_kde: 'OFF'
  60. - build_type: Release
  61. variant: generic
  62. disable_kde: 'ON'
  63. - build_type: Debug
  64. variant: kde
  65. disable_kde: 'OFF'
  66. runs-on: ubuntu-24.04
  67. steps:
  68. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  69. with:
  70. submodules: true
  71. - name: ccache
  72. uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
  73. with:
  74. key: ${{ github.job }}-ubuntu-24.04-${{ matrix.build_type }}-${{ matrix.variant }}
  75. - name: Install dependencies
  76. run: sudo apt-get update && sudo apt-get -y install libxrandr-dev libxinerama-dev libxcomposite-dev libxdamage-dev libxcursor-dev libxi-dev libgl-dev libglew-dev freeglut3-dev libsdl2-dev liblz4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libxxf86vm-dev libglm-dev libglfw3-dev libmpv-dev mpv libmpv2 libpulse-dev libpulse0 libfftw3-dev libfreetype-dev libdbus-1-dev libnode-dev wayland-scanner++ wayland-protocols libwayland-dev
  77. - name: Configure CMake
  78. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DDISABLE_KDE_FEATURES=${{matrix.disable_kde}} -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
  79. - name: Build
  80. run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel $(nproc) --verbose
  81. - name: Package
  82. if: ${{ matrix.build_type == 'Release' }}
  83. run: tools/package_release.sh build linux-wallpaperengine-${{ matrix.variant }}-ubuntu-24.04-x86_64 "$RUNNER_TEMP"
  84. - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
  85. if: ${{ matrix.build_type == 'Release' }}
  86. with:
  87. name: linux-wallpaperengine-${{ matrix.variant }}
  88. path: ${{ runner.temp }}/linux-wallpaperengine-${{ matrix.variant }}-ubuntu-24.04-x86_64.tar.gz
  89. if-no-files-found: error
  90. # Arch has V8's shared library only in the AUR (libnode, Node.js built with --shared). The package is kept as an
  91. # asset of the "libnode-arch" release, so the hour-long build only happens when the AUR bumps the version. A new
  92. # version starts from the previous one's ccache. LTO is off, makepkg's own -flto without node's --enable-lto
  93. # handling loses V8's assembly stack scanner at link time; debug is off since -g makes V8 much slower to compile
  94. libnode-arch:
  95. runs-on: ubuntu-24.04
  96. container: archlinux:latest
  97. permissions:
  98. contents: write
  99. env:
  100. GH_TOKEN: ${{ github.token }}
  101. steps:
  102. - name: Install dependencies
  103. run: >-
  104. pacman -Syu --noconfirm --needed base-devel curl jq ccache ada brotli c-ares icu libffi libnghttp2
  105. libnghttp3 libngtcp2 libuv openssl simdjson zlib zstd ninja procps-ng python
  106. - name: Fetch libnode PKGBUILD
  107. id: libnode
  108. run: |
  109. mkdir -p /tmp/libnode /tmp/libnode-pkg
  110. curl -fsSL "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=libnode" -o /tmp/libnode/PKGBUILD
  111. sed -i -e '/--enable-lto/d' -e "/^makedepends=/i options=('!lto' '!debug')" /tmp/libnode/PKGBUILD
  112. # parsed, not sourced (that would run AUR code as root)
  113. pkgver="$(sed -n 's/^pkgver=//p' /tmp/libnode/PKGBUILD | tr -d "'\"")"
  114. pkgrel="$(sed -n 's/^pkgrel=//p' /tmp/libnode/PKGBUILD | tr -d "'\"")"
  115. [ -n "$pkgver" ] && [ -n "$pkgrel" ] || { echo "no pkgver/pkgrel in the libnode PKGBUILD" >&2; exit 1; }
  116. echo "version=$pkgver-$pkgrel" >> "$GITHUB_OUTPUT"
  117. echo "asset=libnode-$pkgver-$pkgrel-x86_64.pkg.tar.zst" >> "$GITHUB_OUTPUT"
  118. - name: Download libnode from the release
  119. id: prebuilt
  120. run: |
  121. asset="${{ steps.libnode.outputs.asset }}"
  122. if curl -fsSL "https://github.com/$GITHUB_REPOSITORY/releases/download/libnode-arch/$asset" -o "/tmp/libnode-pkg/$asset"; then
  123. echo "hit=true" >> "$GITHUB_OUTPUT"
  124. else
  125. rm -f "/tmp/libnode-pkg/$asset"
  126. echo "hit=false" >> "$GITHUB_OUTPUT"
  127. fi
  128. - name: Restore ccache
  129. if: steps.prebuilt.outputs.hit != 'true'
  130. uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
  131. with:
  132. path: /tmp/libnode-ccache
  133. key: libnode-ccache-${{ steps.libnode.outputs.version }}
  134. restore-keys: libnode-ccache-
  135. - name: Build libnode
  136. if: steps.prebuilt.outputs.hit != 'true'
  137. run: |
  138. useradd -m builder
  139. mkdir -p /tmp/libnode-ccache
  140. chown -R builder /tmp/libnode /tmp/libnode-ccache
  141. su builder -c 'export CCACHE_DIR=/tmp/libnode-ccache CCACHE_MAXSIZE=2G CCACHE_COMPILERCHECK=content
  142. PATH=/usr/lib/ccache/bin:$PATH; ccache -z; cd /tmp/libnode && makepkg --noconfirm --nodeps; ccache -s'
  143. cp /tmp/libnode/libnode-[0-9]*.pkg.tar.zst "/tmp/libnode-pkg/${{ steps.libnode.outputs.asset }}"
  144. # saved right away, a later failure in this run must not throw the build away
  145. - name: Save ccache
  146. if: steps.prebuilt.outputs.hit != 'true'
  147. uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
  148. with:
  149. path: /tmp/libnode-ccache
  150. key: libnode-ccache-${{ steps.libnode.outputs.version }}
  151. - name: Publish libnode to the release
  152. if: steps.prebuilt.outputs.hit != 'true'
  153. run: |
  154. asset="${{ steps.libnode.outputs.asset }}"
  155. api="https://api.github.com/repos/$GITHUB_REPOSITORY"
  156. auth="Authorization: Bearer $GH_TOKEN"
  157. rel="$(curl -sS -H "$auth" "$api/releases/tags/libnode-arch")"
  158. id="$(echo "$rel" | jq -r '.id // empty')"
  159. if [ -z "$id" ]; then
  160. id="$(curl -fsS -H "$auth" -X POST "$api/releases" \
  161. -d '{"tag_name":"libnode-arch","name":"libnode (Arch)","body":"Prebuilt AUR libnode packages for the CI, not an application release.","prerelease":true}' | jq -r .id)"
  162. fi
  163. old="$(curl -fsS -H "$auth" "$api/releases/$id/assets?per_page=100" | jq -r --arg n "$asset" '.[] | select(.name == $n) | .id')"
  164. for a in $old; do curl -fsS -H "$auth" -X DELETE "$api/releases/assets/$a"; done
  165. curl -fsS -H "$auth" -H "Content-Type: application/octet-stream" --data-binary "@/tmp/libnode-pkg/$asset" \
  166. "https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$id/assets?name=$asset" > /dev/null
  167. # for the Arch distribution builds and the smoke test's fresh Arch container
  168. - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
  169. with:
  170. name: libnode-arch
  171. path: /tmp/libnode-pkg/libnode-[0-9]*.pkg.tar.zst
  172. if-no-files-found: error
  173. distro-build:
  174. needs: [tests, libnode-arch]
  175. strategy:
  176. fail-fast: false
  177. matrix:
  178. distro: [fedora-44, arch]
  179. variant: [kde, generic]
  180. include:
  181. - distro: arch
  182. image: archlinux:latest
  183. # libnode comes from the libnode-arch job, these are its dependencies plus CEF's
  184. install: >-
  185. pacman -Syu --noconfirm --needed git base-devel curl cmake glew freeglut sdl2-compat lz4 zlib ffmpeg glm
  186. glfw mpv libpulse freetype2 harfbuzz dbus wayland wayland-protocols mesa libxrandr libxinerama
  187. libxcursor libxi libxxf86vm fftw gmp nss at-spi2-core libcups libxcomposite libxdamage libxkbcommon
  188. pango cairo alsa-lib libdrm libxshmfence ada brotli c-ares icu libffi libnghttp2 libnghttp3 libngtcp2
  189. libuv openssl simdjson zstd
  190. - distro: fedora-44
  191. image: fedora:44
  192. install: >-
  193. dnf -y install git gcc gcc-c++ make cmake pkgconf-pkg-config binutils tar gzip
  194. libXrandr-devel libXinerama-devel libXcomposite-devel libXdamage-devel libXcursor-devel libXi-devel libXxf86vm-devel
  195. mesa-libGL-devel mesa-libEGL-devel glew-devel freeglut-devel sdl2-compat-devel lz4-devel
  196. zlib-ng-compat-devel ffmpeg-free-devel glm-devel glfw-devel mpv-devel pulseaudio-libs-devel
  197. freetype-devel harfbuzz-devel dbus-devel wayland-devel wayland-protocols-devel fftw-devel gmp-devel
  198. nodejs24-devel
  199. runs-on: ubuntu-24.04
  200. container: ${{ matrix.image }}
  201. steps:
  202. # git has to be there before checkout, otherwise it falls back to a tarball without submodules
  203. - name: Install dependencies
  204. run: ${{ matrix.install }}
  205. - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
  206. if: matrix.distro == 'arch'
  207. with:
  208. name: libnode-arch
  209. path: /tmp/libnode-pkg
  210. - name: Install libnode
  211. if: matrix.distro == 'arch'
  212. run: pacman -U --noconfirm /tmp/libnode-pkg/libnode-[0-9]*.pkg.tar.zst
  213. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  214. with:
  215. submodules: true
  216. - name: Configure CMake
  217. run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DDISABLE_KDE_FEATURES=${{ matrix.variant == 'generic' && 'ON' || 'OFF' }}
  218. - name: Build
  219. run: cmake --build build --parallel $(nproc)
  220. - name: Package
  221. run: tools/package_release.sh build linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}-x86_64 "$RUNNER_TEMP"
  222. - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
  223. with:
  224. name: linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}
  225. path: ${{ runner.temp }}/linux-wallpaperengine-${{ matrix.variant }}-${{ matrix.distro }}-x86_64.tar.gz
  226. if-no-files-found: error
  227. # one tarball for every distribution: built on Debian 12 (glibc 2.36, the oldest base with FFmpeg 5.1 and a
  228. # V8 >= 10.2 libnode), every library that isn't the system's bundled, glibc floor 2.35 (Ubuntu 22.04), see
  229. # tools/package_release.sh
  230. portable:
  231. needs: tests
  232. strategy:
  233. matrix:
  234. variant: [kde, generic]
  235. runs-on: ubuntu-24.04
  236. container: debian:12
  237. steps:
  238. - name: Install dependencies
  239. env:
  240. DEBIAN_FRONTEND: noninteractive
  241. run: >-
  242. apt-get update && apt-get -y install --no-install-recommends git ca-certificates curl build-essential
  243. cmake pkg-config patchelf python3 binutils libxrandr-dev libxinerama-dev libxcomposite-dev libxdamage-dev libxcursor-dev libxi-dev
  244. libgl-dev libegl-dev libglew-dev freeglut3-dev libsdl2-dev liblz4-dev libavcodec-dev libavformat-dev
  245. libavutil-dev libswscale-dev libswresample-dev libxxf86vm-dev libglm-dev libglfw3-dev libmpv-dev
  246. libpulse-dev libfftw3-dev libfreetype-dev libharfbuzz-dev libdbus-1-dev libnode-dev libwayland-dev
  247. wayland-protocols libgmp-dev libnss3 libnspr4 libcups2 libatk1.0-0 libatk-bridge2.0-0 libxcomposite1
  248. libxdamage1 libgbm1 libxkbcommon0 libasound2 libpango-1.0-0 libcairo2 libdrm2 libxshmfence1
  249. libatspi2.0-0
  250. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  251. with:
  252. submodules: true
  253. - name: Configure CMake
  254. run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DDISABLE_KDE_FEATURES=${{ matrix.variant == 'generic' && 'ON' || 'OFF' }}
  255. - name: Build
  256. run: cmake --build build --parallel $(nproc)
  257. - name: Package
  258. run: tools/package_release.sh --portable build linux-wallpaperengine-${{ matrix.variant }}-portable-x86_64 "$RUNNER_TEMP"
  259. - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
  260. with:
  261. name: linux-wallpaperengine-${{ matrix.variant }}-portable
  262. path: ${{ runner.temp }}/linux-wallpaperengine-${{ matrix.variant }}-portable-x86_64.tar.gz
  263. if-no-files-found: error
  264. # every release tarball unpacked in a bare container of the distributions it is meant for: libraries resolve
  265. # (portable: with only what a desktop has; distribution builds: plus their packages, found by soname) and
  266. # --help runs
  267. smoke:
  268. needs: [build, distro-build, portable]
  269. strategy:
  270. fail-fast: false
  271. matrix:
  272. include:
  273. - { image: 'ubuntu:22.04', tarball: kde-portable }
  274. - { image: 'ubuntu:22.04', tarball: generic-portable }
  275. - { image: 'ubuntu:24.04', tarball: kde-portable }
  276. - { image: 'ubuntu:26.04', tarball: kde-portable }
  277. - { image: 'debian:12', tarball: kde-portable }
  278. - { image: 'debian:13', tarball: kde-portable }
  279. - { image: 'fedora:43', tarball: kde-portable }
  280. - { image: 'fedora:44', tarball: kde-portable }
  281. - { image: 'fedora:45', tarball: kde-portable }
  282. - { image: 'opensuse/leap:16.0', tarball: kde-portable }
  283. - { image: 'opensuse/tumbleweed', tarball: kde-portable }
  284. - { image: 'archlinux:latest', tarball: kde-portable }
  285. - { image: 'ubuntu:24.04', tarball: kde-ubuntu-24.04 }
  286. - { image: 'fedora:44', tarball: kde-fedora-44 }
  287. - { image: 'archlinux:latest', tarball: kde-arch }
  288. runs-on: ubuntu-24.04
  289. container: ${{ matrix.image }}
  290. steps:
  291. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  292. - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
  293. with:
  294. # the Ubuntu build's artifact has no distribution in its name
  295. name: linux-wallpaperengine-${{ matrix.tarball == 'kde-ubuntu-24.04' && 'kde' || matrix.tarball }}
  296. path: tarball
  297. - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
  298. if: matrix.tarball == 'kde-arch'
  299. with:
  300. name: libnode-arch
  301. path: libnode
  302. - name: Smoke test
  303. run: |
  304. libnode=(libnode/libnode-[0-9]*.pkg.tar.zst)
  305. [ -e "${libnode[0]}" ] && export LIBNODE_PKG="$PWD/${libnode[0]}"
  306. tools/smoke_test_release.sh --install-deps tarball/*.tar.gz
  307. shell: bash
  308. release:
  309. needs: [build, distro-build, portable, smoke]
  310. if: startsWith(github.ref, 'refs/tags/')
  311. runs-on: ubuntu-latest
  312. permissions:
  313. contents: write
  314. steps:
  315. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  316. - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
  317. with:
  318. path: release
  319. merge-multiple: true
  320. - name: Upload to the release
  321. env:
  322. GH_TOKEN: ${{ github.token }}
  323. run: |
  324. # a release made on GitHub already exists, a manual run on a bare tag has none yet
  325. if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
  326. gh release upload "$GITHUB_REF_NAME" --clobber release/*.tar.gz
  327. else
  328. gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --generate-notes release/*.tar.gz
  329. fi
  330. # the -bin package points at the release's portable tarball, so it is updated after the upload
  331. aur:
  332. needs: release
  333. # pre-release tags are no valid pkgver
  334. if: ${{ !github.event.release.prerelease }}
  335. runs-on: ubuntu-latest
  336. env:
  337. HAS_AUR_KEY: ${{ secrets.AUR_SSH_PRIVATE_KEY != '' }}
  338. steps:
  339. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  340. - name: Set the version
  341. run: sed -i -e "s/^pkgver=.*/pkgver=${GITHUB_REF_NAME#v}/" -e "s/^pkgrel=.*/pkgrel=1/"
  342. packaging/aur/linux-wallpaperengine-kde-bin/PKGBUILD
  343. - name: Publish linux-wallpaperengine-kde-bin to the AUR
  344. if: env.HAS_AUR_KEY == 'true'
  345. uses: KSXGitHub/github-actions-deploy-aur@084b0d9b15415bf9cdb65d44dad1efe37a354050 # v4.2.0
  346. with:
  347. pkgname: linux-wallpaperengine-kde-bin
  348. pkgbuild: ./packaging/aur/linux-wallpaperengine-kde-bin/PKGBUILD
  349. updpkgsums: true
  350. commit_username: ${{ secrets.AUR_USERNAME }}
  351. commit_email: ${{ secrets.AUR_EMAIL }}
  352. ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
  353. commit_message: Update to ${{ github.ref_name }}
  354. clang-build:
  355. needs: tests
  356. strategy:
  357. matrix:
  358. build_type: [Debug, Release]
  359. # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
  360. # You can convert this to a matrix build if you need cross-platform coverage.
  361. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
  362. runs-on: ubuntu-24.04
  363. steps:
  364. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  365. with:
  366. submodules: true
  367. - name: ccache
  368. uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
  369. with:
  370. key: ${{ github.job }}-ubuntu-24.04-${{ matrix.build_type }}
  371. - name: Install dependencies
  372. run: sudo apt-get update && sudo apt-get -y install libxrandr-dev libxinerama-dev libxcomposite-dev libxdamage-dev libxcursor-dev libxi-dev libgl-dev libglew-dev freeglut3-dev libsdl2-dev liblz4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libxxf86vm-dev libglm-dev libglfw3-dev libmpv-dev mpv libmpv2 libpulse-dev libpulse0 libfftw3-dev libfreetype-dev libdbus-1-dev libnode-dev wayland-scanner++ wayland-protocols libwayland-dev
  373. - name: Configure CMake
  374. # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
  375. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
  376. run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++
  377. - name: Build
  378. # Build your program with the given configuration
  379. run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --verbose