Skip to content

Commit

Permalink
Fix GH runners memory issue by increasing swapfile (opensearch-projec…
Browse files Browse the repository at this point in the history
…t#9596)

Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: Ivan Brusic <[email protected]>
  • Loading branch information
gaiksaya authored and brusic committed Sep 25, 2023
1 parent 3d67262 commit 3da9b31
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/check-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Increase swapfile
run: |
sudo swapoff -a
sudo fallocate -l 10G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
- name: Run compatibility task
run: ./gradlew checkCompatibility -i | tee $HOME/gradlew-check.out

Expand Down

0 comments on commit 3da9b31

Please sign in to comment.