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

how to install github actions runner

Patricia Arquette
Release: 2024-10-10 10:57:16
Original
401 people have browsed it

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>
    Copy after login
  3. Extract the runner package:

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

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

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

    <code>sudo ./svc.sh install
    sudo ./svc.sh start</code>
    Copy after login

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>
    Copy after login

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>
    Copy after login

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!

source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template