Skip to content

Instantly share code, notes, and snippets.

@andrewrk
Last active April 1, 2024 00:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewrk/7677704bc1863703aaa9ec86ea7caf41 to your computer and use it in GitHub Desktop.
Save andrewrk/7677704bc1863703aaa9ec86ea7caf41 to your computer and use it in GitHub Desktop.
instructions to set up a runner
# Create a folder under the drive root
mkdir actions-runner; cd actions-runner
# Download the latest runner package
Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-win-arm64-2.311.0.zip -OutFile actions-runner-win-arm64-2.311.0.zip
# Optional: Validate the hash
if((Get-FileHash -Path actions-runner-win-arm64-2.311.0.zip -Algorithm SHA256).Hash.ToUpper() -ne '7844fbb802116afd02efa21ee4b3a54201b121727e7671f19f32c0d760b0fd11'.ToUpper()){ throw 'Computed checksum did not match' }
# Extract the installer
Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD/actions-runner-win-arm64-2.311.0.zip", "$PWD")
# Create the runner and start the configuration experience
./config.cmd --url https://github.com/ziglang/zig --token AAA2ADY2RRTINSUTQ2WEATTGBIFSG --runasservice
# Run it!
./run.cmd
# Remove it
./config.sh remove --token AAA2ADYA7W52A7GAFQ7K3ODGBIFNO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment