Skip to content

Instantly share code, notes, and snippets.

@andrewrk
Last active August 12, 2024 00:01
Show Gist options
  • 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.317.0/actions-runner-win-arm64-2.317.0.zip -OutFile actions-runner-win-arm64-2.317.0.zip
# Optional: Validate the hash
if((Get-FileHash -Path actions-runner-win-arm64-2.317.0.zip -Algorithm SHA256).Hash.ToUpper() -ne '450da62bdcbab0a34ebd5a14b466d630f9cdfb1985720785499f589fd3e3724c'.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.317.0.zip", "$PWD")
# Create the runner and start the configuration experience
./config.cmd --url https://github.com/ziglang/zig --token AAA2ADYH3LHSRLP7NJRKNILGXFAUY --runasservice
# Run it!
./run.cmd
# Remove it
./config.sh remove --token AAA2AD32BW33DGCOX5ZNB3TGXFPPO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment