Skip to content

Commit

Permalink
Increase Linux swapfile size in GitHub runner to avoid OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
lemois-1337 committed Aug 28, 2024
1 parent 23b175a commit c56f01e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
if: runner.os == 'Windows'
run: powershell -command .github\workflows\SetPageFileSize.ps1

# Increase the swap size on Linux to aviod running out of memory
- name: Increase swap size on Linux
if: runner.os == 'Linux'
uses: thejerrybao/setup-swap-space@v1
with:
swap-size-gb: 12

- name: Setup Go
uses: actions/setup-go@v4
with:
Expand All @@ -43,6 +50,14 @@ jobs:
runs-on: ubuntu-latest
name: Fast stability tests
steps:

# Increase the swap size on Linux to aviod running out of memory
- name: Increase swap size on Linux
if: runner.os == 'Linux'
uses: thejerrybao/setup-swap-space@v1
with:
swap-size-gb: 12

- name: Setup Go
uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit c56f01e

Please sign in to comment.