- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
pierotofy / set-swap-space Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to Increase Swap Space on GitHub Runners
GitHub Action to Increase Swap Space on GitHub Runners
Run pierotofy/set-swap-space@master
with:
swap-size-gb: 100
Run echo "Memory and swap:"
echo "Memory and swap:"
free -h
echo
swapon --show
echo
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Memory and swap:
total used free shared buff/cache available
Mem: 31Gi 642Mi 28Gi 7.0Mi 2.5Gi 30Gi
Swap: 0B 0B 0B
Run export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
sudo swapoff $SWAP_FILE
sudo rm $SWAP_FILE
sudo fallocate -l 100G $SWAP_FILE
sudo chmod 600 $SWAP_FILE
sudo mkswap $SWAP_FILE
sudo swapon $SWAP_FILE
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
swapoff: bad usage
Try 'swapoff --help' for more information.
Error: Process completed with exit code 16.
Only happens on a large runner (ubuntu-latest-8-cores
), works fine on regular runners (ubuntu-latest
).
Would be possible? I receive a free
command not found on a windows runner
Running set-swap-space
on Github Actions with the container
directive here throws an error about superuser permissions.
MRE:
run_tester:
runs-on: ubuntu-latest
container:
image: singlecellopenproblems/openproblems-github-actions:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
options: --user root
steps:
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10
Traceback:
Run pierotofy/set-swap-space@master
with:
swap-size-gb: 10
Run echo "Memory and swap:"
echo "Memory and swap:"
free -h
echo
swapon --show
echo
shell: bash --noprofile --norc -e -o pipefail {0}
Memory and swap:
total used free shared buff/cache available
Mem: 6.8Gi 794Mi 953Mi 9.0Mi 5.1Gi 5.7Gi
Swap: 4.0Gi 20Mi 4.0Gi
NAME TYPE SIZE USED PRIO
/mnt/swapfile file 4G 20.1M -2
Run export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
sudo swapoff $SWAP_FILE
sudo rm $SWAP_FILE
sudo fallocate -l 10G $SWAP_FILE
sudo chmod 600 $SWAP_FILE
sudo mkswap $SWAP_FILE
sudo swapon $SWAP_FILE
shell: bash --noprofile --norc -e -o pipefail {0}
swapoff: Not superuser.
Error: Process completed with exit code 1[6](https://github.com/giovp/SingleCellOpenProblems/runs/6494687199?check_suite_focus=true#step:11:6).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.