mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 15:33:22 +09:00
16 lines
549 B
YAML
16 lines
549 B
YAML
name: Set swap space
|
|
description: Replace the runner's swap with a swap file of the given size
|
|
inputs:
|
|
swap-size-gb:
|
|
description: Size of the swap file in GiB
|
|
required: true
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
# scripts/ci/set_swap_space.sh says which swap it replaces, where the file goes and when it
|
|
# is sized down; it prints the swap state and free space before and after.
|
|
- shell: bash
|
|
env:
|
|
SWAP_SIZE_GB: ${{ inputs.swap-size-gb }}
|
|
run: bash "${GITHUB_ACTION_PATH}/../../../scripts/ci/set_swap_space.sh"
|