Skip to content
database

GitHub Action

Setup Swap Space

v1 Latest version

Setup Swap Space

database

Setup Swap Space

Adds/replaces swap space

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Swap Space

uses: thejerrybao/setup-swap-space@v1

Learn more about this action in thejerrybao/setup-swap-space

Choose a version

Setup Swap Space

The setup-swap-space action sets up a swap space in the runner.

Usage

  • swap-space-path: The path where the swap file should be created. Default value: /mnt/swapfile.
  • swap-size-gb: The swap space size to set up in Gigabytes. Default value: 10.
  • remove-existing-swap-files: Removes all existing swap files that are enabled. Default value: true

Example

steps:
- uses: thejerrybao/setup-swap-space@v1
  with:
    swap-space-path: /swapfile
    swap-size-gb: 8
    remove-existing-swap-files: true