-
Notifications
You must be signed in to change notification settings - Fork 295
157 lines (126 loc) · 4.5 KB
/
build.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: CI
on: [push, pull_request]
jobs:
build-Linux:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: >
sudo apt-get update;
sudo apt-get --no-install-recommends install
catch2
libfreetype6-dev
libglew-dev
libglm-dev
libmsgpack-dev
libnetcdf-dev
libpng-dev
libxml2-dev
- name: Install collada2gltf
run: |
wget -nv https://anaconda.org/schrodinger/collada2gltf/2.1.4/download/linux-64/collada2gltf-2.1.4-h6bb024c_0.tar.bz2
sudo tar xf collada2gltf-*.tar.bz2 -C / bin/collada2gltf
- name: Get additional sources
run: |
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
cp -R mmtf-cpp/include/mmtf* include/
- name: Build
run: |
pip install --upgrade pip
pip install -v --config-settings testing=True '.[dev]'
env:
DEBUG: 1
- name: Test
run: |
pymol -ckqy testing/testing.py --run all
build-Windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9"]
env:
CONDA_ROOT: ${{github.workspace}}\..\tmp\miniforge
MINIFORGE_EXEC: ${{github.workspace}}\..\tmp\miniforge.exe
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Download Miniforge
shell: cmd
run: |
if not exist %CONDA_ROOT% mkdir %CONDA_ROOT%
curl -L -o %MINIFORGE_EXEC% https://github.com/conda-forge/miniforge/releases/download/24.11.0-0/Miniforge3-24.11.0-0-Windows-x86_64.exe
start /wait %MINIFORGE_EXEC% /S /D=%CONDA_ROOT%
- name: Set up Miniforge
shell: cmd
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
conda create -n testing_env python=${{ matrix.python-version }}
conda activate testing_env
conda install -y -c conda-forge -c schrodinger libpng freetype glew libxml2 catch2=2.13.3 glm libnetcdf collada2gltf libffi
conda info
- name: Get additional sources
shell: cmd
run: |
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
cp -R mmtf-cpp/include/mmtf* %CONDA_ROOT%/Library/include/
git clone --depth 1 --single-branch --branch cpp_master https://github.com/msgpack/msgpack-c.git
cp -R msgpack-c/include/msgpack* %CONDA_ROOT%/Library/include/
- name: Build PyMOL
shell: cmd
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
conda activate testing_env
pip install -v --config-settings testing=True .[dev]
- name: Test
shell: cmd
run: |
CALL %CONDA_ROOT%\\Scripts\\activate.bat
conda activate testing_env
pymol -ckqy testing\\testing.py --run all
build-MacOS:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
env:
CONDA_ROOT: "/tmp/miniforge"
steps:
- uses: actions/[email protected]
- name: Set up Miniforge and Build
run: |
curl -L -o $CONDA_ROOT.sh https://github.com/conda-forge/miniforge/releases/download/24.11.0-0/Miniforge3-MacOSX-x86_64.sh
bash $CONDA_ROOT.sh -b -p $CONDA_ROOT
export PATH="$CONDA_ROOT/bin:$PATH"
conda config --set quiet yes
conda create -n testing_env python=${{ matrix.python-version }}
source activate testing_env
conda install -y -c conda-forge -c schrodinger libpng freetype glew libxml2 catch2=2.13.3 glm libnetcdf collada2gltf
conda info
- name: Get additional sources
run: |
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
cp -R mmtf-cpp/include/mmtf* ${CONDA_ROOT}/include/
git clone --depth 1 --single-branch --branch cpp_master https://github.com/msgpack/msgpack-c.git
cp -R msgpack-c/include/msgpack* ${CONDA_ROOT}/include/
- name: Build PyMOL
run: |
export MACOSX_DEPLOYMENT_TARGET=12.0
export PATH="$CONDA_ROOT/bin:$PATH"
source activate testing_env
pip install -v --config-settings testing=True '.[dev]'
- name: Test
run: |
export PATH="$CONDA_ROOT/bin:$PATH"
source activate testing_env
pymol -ckqy testing/testing.py --run all