From 9ccdc413e40b4c4c5dd2cf03822e9c13ce9e7d2e Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sun, 5 Jan 2025 23:24:40 +0530 Subject: [PATCH] workflows/eval: add swap to tackle recent borderline OOM Removed in https://github.com/NixOS/nixpkgs/pull/356023#discussion_r1844961453 Due to https://github.com/NixOS/nixpkgs/issues/355847#issuecomment-2566688172 https://github.com/NixOS/nixpkgs/issues/355847#issuecomment-2559907806 https://github.com/NixOS/nixpkgs/issues/355847#issuecomment-2543915995 --- .github/workflows/eval.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index d0e5a8781ebe..d312f78a4c7e 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -85,6 +85,13 @@ jobs: matrix: system: ${{ fromJSON(needs.attrs.outputs.systems) }} steps: + - name: Enable swap + run: | + sudo fallocate -l 10G /swapfile + sudo chmod 600 /swapfile + sudo mkswap /swapfile + sudo swapon /swapfile + - name: Download the list of all attributes uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: