Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20230513] Setup a GitHub Actions runner on a Mac mini #203

Open
linzhengen opened this issue May 13, 2024 · 0 comments
Open

[20230513] Setup a GitHub Actions runner on a Mac mini #203

linzhengen opened this issue May 13, 2024 · 0 comments

Comments

@linzhengen
Copy link
Owner

linzhengen commented May 13, 2024

Preparing for installation

sudo dscl . -create /Users/gh-runner
sudo dscl . -create /Users/gh-runner UserShell /bin/bash
sudo dscl . -create /Users/gh-runner RealName "GitHub runner"
sudo dscl . -create /Users/gh-runner UniqueID "1001"
sudo dscl . -create /Users/gh-runner PrimaryGroupID 20
sudo dscl . -create /Users/gh-runner NFSHomeDirectory /Users/gh-runner
sudo dscl . -passwd /Users/gh-runner {mypassword}
sudo dscl . -append /Groups/admin GroupMembership gh-runner

brew install git

Installation

open -a '/Applications/Google Chrome.app' 'https://github.com/{user}/{repo}/settings/actions/runners/new?arch=arm64&os=osx'

sudo mkdir actions-runner
sudo chown gh-runner:20 actions-runner
cd actions-runner
curl -o actions-runner-osx-arm64-2.316.1.tar.gz -L https://github.com/actions/runner/releases/download/v2.316.1/actions-runner-osx-arm64-2.316.1.tar.gz
echo "75129881e1b80857d235d95a390106470536f5669354cb26af8651861398fa97  actions-runner-osx-arm64-2.316.1.tar.gz" | shasum -a 256 -c
tar xzf ./actions-runner-osx-arm64-2.316.1.tar.gz

./config.sh --url https://github.com/shopload --token {mytoken}
./svc.sh install
./svc.sh start
./svc.sh status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant