Fix recent merge conflict #1
This file contains 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
name: Coot CI Homebrew macOS | |
on: | |
push: | |
jobs: | |
build-for-macos: | |
runs-on: macos-latest | |
steps: | |
# I don't want to a cache Homebrew after coot has been installed | |
# - name: Cache homebrew | |
# id: cache-homebrew | |
# uses: actions/cache@v3 | |
# with: | |
# path: /usr/local | |
# key: usr_local_homebrew | |
- name: download test data | |
run: wget https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/data/test-molecule-container-test-data.tar.gz | |
- name: untar test data | |
run: tar xvf test-molecule-container-test-data.tar.gz | |
- name: Which brew? | |
run: which brew | |
- name: Setup homebrew | |
id: setup-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: turn on brew analytics | |
run: brew analytics on | |
# from https://support.circleci.com/hc/en-us/articles/360043542933--Error-The-brew-link-step-did-not-complete-successfully-When-Installing-Python | |
# - name: brew unlink python@2 | |
# run: brew unlink python@2 | |
# -> didn't work: Error: No such keg: /usr/local/Cellar/python@2 | |
# this is not needed, it seems already installed? | |
# this is causing a conflict with azure-cli? | |
# I actually don't care which version of python is used at the moment. | |
# - name: Homebrew install python3 | |
# run: brew install [email protected] | |
- name: pre-update clean for homebrew | |
run: | | |
rm '/usr/local/bin/2to3' | |
rm '/usr/local/bin/2to3-3.11' | |
rm '/usr/local/bin/2to3-3.12' | |
rm '/usr/local/bin/idle3' | |
rm '/usr/local/bin/idle3.11' | |
rm '/usr/local/bin/idle3.12' | |
rm '/usr/local/bin/pydoc3.12' | |
rm '/usr/local/bin/python3.12' | |
rm '/usr/local/bin/python3.12-config' | |
rm '/usr/local/bin/pydoc3' | |
rm '/usr/local/bin/pydoc3.11' | |
rm '/usr/local/bin/python3' | |
rm '/usr/local/bin/python3-config' | |
rm '/usr/local/bin/python3.11-config' | |
rm '/usr/local/bin/python3.11' | |
- name: brew update | |
run: | | |
brew update | |
brew upgrade | |
- name: Install Homebrew dependencies | |
run: > | |
brew install boost boost-python3 brewsci/bio/clipper4coot | |
brewsci/bio/raster3d brewsci/bio/ssm brewsci/bio/gemmi | |
dwarfutils gsl rdkit pygobject3 | |
- name: Get coot.rb file | |
# run: wget https://raw.githubusercontent.com/YoshitakaMo/homebrew-bio/coot/Formula/coot.rb | |
# try this modified version for now: | |
run: wget https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/files/coot.rb | |
- name: Compile Homebrew coot HEAD | |
# don't stall waiting for user input to resolve the failed patch | |
run: NONINTERACTIVE=1 brew install ./coot.rb --HEAD | |
- name: Does it run? | |
run: coot --no-graphics < /dev/null | |