Self Hosted Runner

참고 : https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners

설치

Setting >> GitHub >> Action >> runners

alt text

click "new self hosted runner"

alt text

select os and Architecture

alt text
# Create a folder
mkdir actions-runner && cd actions-runner # Download the latest runner package
curl -o actions-runner-osx-x64-2.313.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-osx-x64-2.313.0.tar.gz
tar xzf ./actions-runner-osx-x64-2.313.0.tar.gz
alt text

configure

./config.sh --url https://github.com/teamsmiley/gitbook-sample --token ABFUT65NGHFYDSAH6RWM2KDF23HHA
alt text

다시 github에서 setting >> Actions >> runners로 가면 등록된 runner가 보인다.

alt text
./run.sh

이제 idle 상태가 된다.

사용

runs-on을 사용하면 된다.

runs-on: self-hosted

결론

ios빌드나 code signing등을 위해서는 self-hosted runner를 사용할수 있다.

Last updated

Was this helpful?