Last active
July 27, 2020 00:20
-
-
Save sanzgiri/5a582839b522ba98a737cba503f9a8e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install runner for Mac as per instructions | |
| mkdir actions-runner && cd actions-runner | |
| curl -O -L https://github.com/actions/runner/releases/download/v2.267.1/actions-runner-osx-x64-2.267.1.tar.gz | |
| tar xzf ./actions-runner-osx-x64-2.267.1.tar.gz | |
| ./config.sh --url https://github.com/sanzgiri/action-numerai --token <your-token> | |
| # Self-hosted runner on Mac | |
| sudo mkdir /Users/runner | |
| sudo chmod 777 runner | |
| cd runner | |
| mkdir hostedtoolcache | |
| chmod 777 hostedtoolcache/ | |
| # Need to install openssl, python 3.8.5 | |
| brew install update && brew install upgrade | |
| # downgrade openssl to 1.0.2t | |
| brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/8b9d6d688f483a0f33fcfc93d433de501b9c3513/Formula/openssl.rb | |
| # In .bash_profile, make sure conda environment is not started by default | |
| export LDFLAGS="-L/usr/local/opt/openssl/lib" | |
| export CPPFLAGS="-I/usr/local/opt/openssl/include" | |
| export PATH="/usr/local/opt/openssl/bin:$PATH" | |
| export AGENT_TOOLSDIRECTORY=/Users/runner/hostedtoolcache | |
| # Add any env variables needed by runner. | |
| # Once saved in secrets on github not available for self-hosted runner | |
| source ~/.bash_profile | |
| cd actions-runner | |
| tmux | |
| ./run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment