Home  >  Article  >  Development Tools  >  how to install github actions runner

how to install github actions runner

Patricia Arquette
Patricia ArquetteOriginal
2024-10-10 10:57:16359browse

This article provides comprehensive instructions on installing GitHub Actions runner on Linux, Windows, and macOS. It covers the essential steps required to download, extract, and configure the runner for running workflow jobs on GitHub. The article

how to install github actions runner

How to install GitHub Actions runner on Linux, Windows, and macOS

How to install GitHub Actions runner on Linux?

To install GitHub Actions runner on Linux, follow these steps:

  1. Download the runner package for Linux from the GitHub releases page.
  2. Make the runner package executable:

    <code>chmod +x actions-runner-linux-x64-2.290.0.tar.gz</code>
  3. Extract the runner package:

    <code>tar -xzvf actions-runner-linux-x64-2.290.0.tar.gz</code>
  4. Navigate to the extracted runner directory:

    <code>cd actions-runner-linux-x64-2.290.0</code>
  5. Run the runner:

    <code>./config.sh --url https://github.com/<YOUR_ORG>/<YOUR_REPO> --token <YOUR_TOKEN></code>
  6. Start the runner service:

    <code>sudo ./svc.sh install
    sudo ./svc.sh start</code>

How to install GitHub Actions runner on Windows?

To install GitHub Actions runner on Windows, follow these steps:

  1. Download the runner package for Windows from the GitHub releases page.
  2. Double-click on the runner package to start the installation wizard.
  3. Follow the prompts in the installation wizard to complete the installation.
  4. Start the runner service:

    <code>sc start GitHubActions</code>

How to install GitHub Actions runner on macOS?

To install GitHub Actions runner on macOS, follow these steps:

  1. Download the runner package for macOS from the GitHub releases page.
  2. Double-click on the runner package to start the installation wizard.
  3. Follow the prompts in the installation wizard to complete the installation.
  4. Start the runner service:

    <code>launchctl start com.github.GithubActionsRunner</code>

The above is the detailed content of how to install github actions runner. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn