osx_64

峨眉山市雅铭网络工作室 2022-04-03
预计阅读时间 1 分钟
124

Create a folder

$ mkdir actions-runner && cd actions-runner# Download the latest runner package
$ curl -o actions-runner-osx-x64-2.285.1.tar.gz -L https://github.com/actions/runner/releases/download/v2.285.1/actions-runner-osx-x64-2.285.1.tar.gz# Optional: Validate the hash
$ echo “e46c1b305acaffab10a85d417cda804f4721707c85e5353ee3428b385642e6fd actions-runner-osx-x64-2.285.1.tar.gz” | shasum -a 256 -c# Extract the installer
$ tar xzf ./actions-runner-osx-x64-2.285.1.tar.gz

配置

Create the runner and start the configuration experience

$ ./config.sh --url 自己仓库 --token 自己密钥# Last step, run it!
$ ./run.sh

使用

Use this YAML in your workflow file for each job

runs-on: self-hosted


如果此文章对您有帮助欢迎点赞收藏。