18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/.github/workflows
jerrrrycho 92bd7066d4 ci: cache the apt packages of the Linux jobs, install only the X11 headers GLFW needs (#497)
* ci: cache the apt packages of the Linux jobs, install only the X11 headers GLFW needs

The "Install Linux dependencies" step timed out after 15 minutes in many runs: the
runners' Ubuntu mirror delivered about 150 kB/s, with 30 s stalls on single files,
and the step downloaded 136 packages (32.4 MB) every time.

- a local action, .github/actions/apt-install, keeps the downloaded .deb files in the
  Actions cache, keyed by the runner image and the package list. With the same image
  and list it installs the cached files without apt-get update and without the
  mirror; otherwise it runs apt-get update and downloads only what the cache lacks
- --no-install-recommends, and Acquire::Languages "none" for apt-get update
- xorg-dev (about 45 packages nothing used) is replaced by the X11 headers GLFW 3.4
  checks for: libx11-dev, libxcursor-dev, libxext-dev, libxi-dev, libxinerama-dev,
  libxrandr-dev; pkg-config is listed, as it is only a recommendation of libsndfile1-dev
- Build, Build binaries and Coverage use it; Coverage gets the 15-minute step timeout
  and the apt retries too
- Dependabot also updates the actions pinned in .github/actions

* ci: a repaired apt cache is saved under a key of its own run, and the newest one is restored
2026-11-25 05:41:39 +01:00
..