forked from pemsley/coot
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (69 loc) · 2.75 KB
/
build-coot-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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