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 <gaiksaya@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
  • Loading branch information
gaiksaya authored and shiv0408 committed Apr 25, 2024
1 parent 42e01fc commit bc51bf6
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 bc51bf6

Please sign in to comment.