...
Log into the AWS instance
- Running
free -h
will show no active swap running - Use
df -h
to check available space on the hard drive - Create the SWAP file with 64G by running
sudo fallocate -l 64G /swapfile
- You can verify the size of the swapfile using
ls -lh /swapfile
Next we will enable the swapfile using the following step:
Code Block sudo chmod 600 /swapfile ls -lh /swapfile sudo mkswap /swapfile # mark the file as swap space sudo swapon /swapfile # enable sudo swapon --show # verify
Finally, make the swap file permanent:
Code Block sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab cat /etc/fstab # verify
Set up the CI runner:
...
- Create a new self-hosted runner at https://github.com/JCSDA/spack-stack/actions/runners?tab=self-hosted. You can use the default runner group, but pick a name that helps identify the purpose of the runner, such as "ubuntu-ci-c6a-x86_64". Keep the labels the same as the name. Note, the security token will change with each runner.
- Document the new self hosted runner in a txt file at https://github.com/JCSDA-internal/jedi-tools/tree/develop/CI-tools/selfhosted
- Add a new spack-stack workflow file in https://github.com/JCSDA/spack-stack/tree/develop/.github/workflows. It is easier to build off of an existing workflow file, but make sure your architecture is consistent and the runner name gets updated at multiple locations inside the yaml.