在 GitHub Actions 运行器上释放磁盘空间

  • Post Information: Posted on 04 Sep 2024 in GitHub. It was automatically migrated from old blogging software and not reviewed for problems yet. Contact mailto:chris@dzombak.com if any issues found.
  • Build Process Issue: The GitHub Actions-based build process for driveway-monitor software started failing due to lack of disk space on the ubuntu-latest (currently ubuntu-22.04) runner machine, with the failure message System.IO.IOException: No space left on device.
  • Solution: Stefan Ceriu found that the fix for macOS runners is this approach. The build process is in Docker, so the author used a script here to free up space. Integrating this script into the GitHub Actions workflow is straightforward. Add a step like curl -fsSL https://raw.githubusercontent.com/kou/arrow/e49d8ae15583ceff03237571569099a6ad62be32/ci/scripts/util_free_space.sh | bash and the rest of the build steps follow. Also, a copy of the script is saved in the Internet Archive here.
阅读 23
0 条评论