From 5ff1975a5d286b200edc380ba8cc0de94d5c0cdc Mon Sep 17 00:00:00 2001 From: windowsair Date: Sun, 24 Dec 2023 13:09:58 +0800 Subject: [PATCH] CI: Increase swap space to avoid OOM --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30af64cd..4850a8b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Create swap space + shell: bash + run: | + sudo fallocate -l 15G /swapfile_new + sudo chmod 600 /swapfile_new + sudo mkswap /swapfile_new + sudo swapon /swapfile_new + sudo swapon --show - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin - name: Build