Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
cpu

GitHub Action

Configure Pagefile

v1.0

Configure Pagefile

cpu

Configure Pagefile

Configure Pagefile on Windows agents in GitHub Actions

Installation

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

              

- name: Configure Pagefile

uses: al-cheb/configure-pagefile-action@v1.0

Learn more about this action in al-cheb/configure-pagefile-action

Choose a version

configure-pagefile-action

This action is intended to configure Pagefile size and location for Windows images in GitHub Actions.

Available parameters

Argument Description Format Default value
minimum-size Set minimum size of Pagefile 2048MB, 4GB, 8GB and etc 8GB
maximum-size Set maximum size of Pagefile The same like minimum-size minimum-size
disk-root Set disk root where Pagefile will be located C: or D: D:

Usage

name: CI
on: [push]
jobs:
  build:
    runs-on: windows-latest
    steps:
    - name: configure Pagefile
      uses: al-cheb/configure-pagefile-action@v1.0
      with:
        minimum-size: 8

    - name: configure Pagefile
      uses: al-cheb/configure-pagefile-action@v1.0
      with:
        minimum-size: 8
        maximum-size: 16
        disk-root: "D:"

License

The scripts and documentation in this project are released under the MIT License