Skip to content

Commit

Permalink
Update build_tiber.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mionsz authored Oct 29, 2024
1 parent 45fad0d commit 86fbdad
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/build_tiber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,25 @@ jobs:
egress-policy: audit

- name: "Memory and swap report before"
run: free -h
run: |
sudo free -h
sudo lsblk
- name: "Set swap to 8Gi"
shell: bash
run: |
export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
swapoff $SWAP_FILE
rm $SWAP_FILE
fallocate -l 8192M $SWAP_FILE
chmod 600 $SWAP_FILE
mkswap $SWAP_FILE
swapon $SWAP_FILE
export SWAP_FILE=$(sudo swapon --show=NAME | tail -n 1)
sudo swapoff $SWAP_FILE
sudo rm $SWAP_FILE
sudo fallocate -l 8192M $SWAP_FILE
sudo chmod 600 $SWAP_FILE
sudo mkswap $SWAP_FILE
sudo swapon $SWAP_FILE
- name: "Memory and swap report after"
run: free -h
run: |
sudo free -h
sudo lsblk
- name: "Preparation: Repository Checkout"
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Expand Down

0 comments on commit 86fbdad

Please sign in to comment.