From bb50bbf038c6211c35b8632a786335cdd75e971b Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Mon, 6 Jun 2022 20:24:30 +0300 Subject: [PATCH 1/3] ci: add echos for more readable output --- .github/workflows/docker.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3ca24f4246..841a1b51d7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,8 +12,10 @@ jobs: steps: - name: Free up space run: | + echo "before freeing up space:" df -h sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc + echo "after freeing up space:" df -h # Workaround for https://github.com/rust-lang/cargo/issues/8719 - name: Set Swap Space From bdf78c482ae99cfee42aaadaa87728b7a769daf6 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Mon, 6 Jun 2022 20:24:53 +0300 Subject: [PATCH 2/3] ci: set swap to maximum --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 841a1b51d7..f3b018ace8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,7 +21,7 @@ jobs: - name: Set Swap Space uses: pierotofy/set-swap-space@v1.0 with: - swap-size-gb: 20 + swap-size-gb: 14 - run: | sudo mkdir -p /var/lib/docker sudo mount -t tmpfs -o size=10G none /var/lib/docker From ef96b93a4e2c824caa79bc8d9ac2af794d42de4e Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Mon, 6 Jun 2022 20:25:18 +0300 Subject: [PATCH 3/3] ci: try without the tmpfs consuming ram --- .github/workflows/docker.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f3b018ace8..78ff6e5471 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -22,10 +22,6 @@ jobs: uses: pierotofy/set-swap-space@v1.0 with: swap-size-gb: 14 - - run: | - sudo mkdir -p /var/lib/docker - sudo mount -t tmpfs -o size=10G none /var/lib/docker - sudo systemctl restart docker - name: Checkout sources uses: actions/checkout@v2 - name: Set up QEMU