Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Created January 26, 2026 05:04
Show Gist options
  • Select an option

  • Save pythoninthegrass/5806dd10c9de299f5f4210247e40feea to your computer and use it in GitHub Desktop.

Select an option

Save pythoninthegrass/5806dd10c9de299f5f4210247e40feea to your computer and use it in GitHub Desktop.
Starlark config for a Tart macOS Sequoia image used as a GitHub Actions Runner
load("cirrus", "env")
# GitHub Actions Runner configuration
RUNNER_VERSION = "2.331.0"
RUNNER_HASH = "6f56ce368b09041f83c5ded4d0fb83b08d9a28e22300a2ce5cb1ed64e67ea47c"
RUNNER_ARCH = "osx-arm64"
REPO_URL = env.get("REPO_URL", "https://github.com/pythoninthegrass/mt")
def main():
return [
("env", {
"RUNNER_VERSION": RUNNER_VERSION,
"RUNNER_HASH": RUNNER_HASH,
"RUNNER_ARCH": RUNNER_ARCH,
"REPO_URL": REPO_URL,
}),
("persistent_worker", {
"isolation": {
"tart": {
"image": "ghcr.io/cirruslabs/macos-sequoia-base:latest",
"user": "admin",
"password": "admin",
"cpu": 4,
"memory": 8,
"softnet": True,
"display": "none",
"disk": 50,
},
},
}),
("task", {
"name": "GitHub Actions Self-Hosted Runner",
"env": {
"GH_RUNNER_TOKEN": env.get("GH_RUNNER_TOKEN", ""),
},
"setup_runner_script": [
"mkdir -p ~/actions-runner && cd ~/actions-runner",
"curl -o actions-runner-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz",
"echo \"${RUNNER_HASH} actions-runner-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz\" | shasum -a 256 -c",
"tar xzf ./actions-runner-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz",
],
"configure_runner_script": [
"cd ~/actions-runner",
"./config.sh --url ${REPO_URL} --token ${GH_RUNNER_TOKEN} --unattended --replace",
],
"run_runner_script": [
"cd ~/actions-runner",
"./run.sh",
],
}),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment