cmake.yml 20 KB

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