Skip to content

Commit 2d6d531

Browse files
committed
ci: disable swap on linux before tests
1 parent fad8cbd commit 2d6d531

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,11 @@ jobs:
4949
- name: Build rustwide
5050
run: cargo build --all ${{ matrix.cargo_flags }}
5151

52+
# Having swap enabled causes problems with the OOM detector, so let's
53+
# disable all swapfiles before running the build.
54+
- name: Disable swap on Linux
55+
run: sudo swapoff -a
56+
if: matrix.os == 'ubuntu-latest'
57+
5258
- name: Test rustwide
5359
run: cargo test --all ${{ matrix.cargo_flags }} -- ${{ matrix.test_flags }}

0 commit comments

Comments
 (0)