Skip to content
starslingdevPublic

About

High-performance persistent storage for GitHub Actions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Disks

High-performance persistent storage for GitHub Actions.

Disks are persistent filesystems mounted into Runners. They let concurrent jobs reuse build caches, datasets, and artifacts through ordinary directories.

Note

Examples target the published v0 release, currently v0.1.0. The 0.x series may include breaking changes. Pin a commit SHA for production workflows (Releases).

Quickstart

The example uses the starsling-ubuntu-26.04 runner label. Replace it with another label from your StarSling Runners configuration if needed. The workflow below publishes the pnpm store from the default branch. Every other authorized job on a StarSling runner mounts it before the steps run and installs against a warm store.

jobs:
  build:
    runs-on: starsling-ubuntu-26.04
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v4

      - uses: starslingdev/disks@v0
        with:
          preset: pnpm-store
          publish: ${{ github.ref == 'refs/heads/main' && 'on-change' || 'never' }}

      - run: pnpm install --frozen-lockfile

The step goes before anything writes the store. When pnpm install runs, the mount supplies the store, and pnpm still links the project.

Performance comparison

StarSling Disks made Mastra's dependencies ready in ~25s — 4.5× faster than GitHub actions/cache.

Service Cached folder size Files ready Download speed Dependencies ready
GitHub actions/cache 4.50 GiB ~36s 177.4 MB/s ~1m51s
StarSling Disks 4.50 GiB ~3s No download ~25s
StarSling speedup Same folder 11.8× — 4.5× (~1m26s saved)

GitHub actions/cache downloaded a 1.41 GiB compressed archive before extraction. StarSling Disks mounted the filesystem directly, avoiding archive packing, upload, download, and extraction.

Files ready is the time from starting restore or mount until the first stored byte can be read.

Dependencies ready adds pnpm setup and an offline install. It excludes checkout, Node setup, queueing, and benchmark bookkeeping.

See the benchmark run and method.

What are StarSling Disks?

A disk is a directory a job reads and writes in place: there is no archive to pack, upload, download or extract. A dependency store is one use; build output, toolchains, datasets and working directories that fan out to later jobs are others.

Each disk has a name, scoped to its repository, and a job can mount several; this step activates one. Every job reads one fixed published generation and writes privately. After a successful default-branch job, StarSling publishes its writes, one publisher at a time; failed jobs discard theirs. See the glossary for terminology.

Prerequisites

  1. StarSling Runners. Use a runner label from your StarSling Runners configuration. GitHub-hosted runners have no disk to mount; the step skips there (Limits of this action).
  2. Billing set up for the organization. Every organization with billing set up can use Disks at the metered storage rate.

Guides

Presets and limits

For available presets, their paths, size caps, change tests, and disk limits, see GET /api/disks/presets. GET /api/disks lists an org's disks with their stored settings. StarSling validates preset names when the disk is activated.

Inputs

Input Values Description
name disk name The disk, by name. Defaults to the preset's name; required without a preset. A name with no disk yet mounts empty. Lower-case letters, digits and dashes, starting with a letter, at most 63 characters.
path path Target directory. ~/… is under the job user's home, a relative path is under the workspace. Defaults to the disk's stored path, then the preset's, then ~/.disks/<name>, so a published disk never moves.
preset a preset Supplies the path, size cap and change test.
size-cap for example 20GB Cap on the disk's size; a publication past it retires the disk. Defaults to the preset's, then the default.
auto-mount true, false Whether the runner mounts the disk before the job's steps. Defaults to true.
access read-write, read-only read-write (default) is a private writable view, discarded at job end. read-only requires publish: never.
publish never, on-change, always, if-missing Publication intent. Defaults to never. See publish modes.
on-degraded continue, fail What a degradation does (see Error codes and failures). continue (default) carries on without the disk, or without its publication; fail fails the step.
git-mirror true, false Off unless true. See Faster checkout. Can be a step's only input.

size-cap and auto-mount, like the preset's change test, are the disk's settings: each successful default-branch publication stores its step's, so an omitted one returns to its default.

Faster checkout (git-mirror)

With git-mirror: true, StarSling keeps a copy of your repository's latest default-branch commit (the files at that commit, no history) on a disk named git, and copies it into the job's workspace before a plain actions/checkout that runs first, so checkout downloads only what changed. It is off unless a job asks: StarSling stores no copy of your code until a default-branch job with the flag succeeds.

jobs:
  test:
    runs-on: starsling-ubuntu-26.04
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v6
      - uses: starslingdev/disks@v0
        with:
          git-mirror: true
  • Each job that should check out faster needs both the flag and id-token: write, and so does the default-branch job that refreshes the copy. A job without id-token: write does not fail: it checks out as before, and its "Set up runner" step logs StarSling Disks: available — grant `id-token: write` to mount them.
  • The runner reads the flag from the workflow before any step runs, so give it as a literal (not an expression) on a step with no if:.
  • Only a successful default-branch job (push, schedule or manual run) refreshes the copy; other jobs only read it. Forks never read or write it.
  • Removing the flag stops both. The last copy stays on the disk until you delete the disk named git: sling disks delete git --repo <owner/name> (or DELETE /api/disks?org=<org>&repository=<owner/name>&name=git on the StarSling API). Remove the flag from every job first, or the next default-branch job with it makes the copy again.

Outputs

Output Meaning
name The disk's name: the name input, else the preset's.
path The absolute target, once resolved. Empty when the step gave no path and ended before StarSling answered.
access read-write or read-only as mounted; a repeat reports the existing mount's. Empty when unmounted.
mount warm (over a published generation), cold (mounted empty: a first or retired disk) or none.
generation The generation this job read. Empty unless mount is warm.
publish-status not-requested, not-needed, pending, denied, lease-held or unavailable. pending means the writes may publish after the job succeeds, not that they did.
reason A reason code, else empty. Step-time only: it never reports the post-job publication.

Limits of this action

Docker's data root, a workspace root as the mount and container jobs are out of scope. On a GitHub-hosted runner the step is a no-op that writes every output; on-degraded: fail makes it fail instead.

Releases

dist/index.js is committed on main and checked fresh by CI, so every commit SHA, branch and tag is runnable. vX.Y.Z tags never move; the major tag (v0) moves forward to the latest non-prerelease version in that major, after publication succeeds. Prefer a commit SHA:

- uses: starslingdev/disks@<full-sha> # v0.1.0

Contributors add Changesets; automation opens a release PR with version bumps, generated changelog entries and the compiled action. Merging that PR with required checks passing publishes vX.Y.Z and advances vX. See the release guide for setup, retries and prereleases.

About

High-performance persistent storage for GitHub Actions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages