From 11af3276eebfd8225ce2f240d9e5aab4ea372de5 Mon Sep 17 00:00:00 2001 From: Chris Yocum Date: Wed, 12 Jun 2024 23:08:17 -0400 Subject: [PATCH] Add swap space fix for cargo issue --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c2ede3..b963d86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,16 @@ jobs: run: | (test -f Dockerfile.${{ matrix.architecture }} && echo "check=passed" >> $GITHUB_OUTPUT) || echo "check=failed" >> $GITHUB_OUTPUT + # Workaround for Cargo issue: https://github.com/rust-lang/cargo/issues/8719 + - name: Set Swap Space + uses: pierotofy/set-swap-space@v1.0 + with: + swap-size-gb: 10 + - run: | + sudo mkdir -p /var/lib/docker + sudo mount -t tmpfs -o size=10G none /var/lib/docker + sudo systemctl restart docker + - name: Set up QEMU if: "contains(steps.arch_check.outputs.check, 'passed')" uses: docker/setup-qemu-action@v3.0.0