forked from pemsley/coot
-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (68 loc) · 2.88 KB
/
build-libcootapi-ubuntu.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
name: libcootapi CI Ubuntu
on:
push:
jobs:
build-libcootapi-for-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache chapi dependencies
id: Cache-chapi-dependencies-using-python-3-10
uses: actions/cache@v4
with:
path: /home/runner/install/chapi-Linux-ubuntu-gtk4
key: chapi-deps-ubuntu-using-python-3-10
- name: Cache test data
id: Cache-test-data
uses: actions/cache@v4
with:
path: test-molecule-container-test-data.tar.gz
key: chapi-build-ubuntu-cache-test-data
- name: download test data
run: wget -N -nv https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/data/test-molecule-container-test-data.tar.gz
- name: untar test data
run: mkdir test-data && cd test-data && tar xvf ../test-molecule-container-test-data.tar.gz
- name: Cache gemmi build
id: Cache-gemmi-build
uses: actions/cache@v4
with:
path: build-gemmi
key: chapi-build-ubuntu-gemmi-cache-build
- name: Install system dependencies
run: sudo apt-get install cmake libdw-dev libncurses5-dev libgtk-4-dev
- name: Where are we?
run: pwd
- name: Run build-with-build-it-3-3
env:
CHAPI_ONLY: true
run: bash build-it-3-3 || echo done
- name: create-build-directory-for-libcootapi
run: mkdir build-libcootapi
- name: set the path
run: echo /home/runner/install/chapi-Linux-ubuntu-gtk4/bin >> $GITHUB_PATH
- name: run cmake
run: >
cd build-libcootapi &&
cmake -DCMAKE_INSTALL_PREFIX=/home/runner/install/chapi-Linux-ubuntu-gtk4
-Dnanobind_DIR=/home/runner/install/chapi-Linux-ubuntu-gtk4/lib/python3.10/site-packages/nanobind/cmake ..
- name: make
run: cd build-libcootapi && make -j 4
- name: make install
run: cd build-libcootapi && make install
- name: test chapi
run: which python3 && python3 --version
- name: what site-packages files do we have?
run: find /home/runner/install/chapi-Linux-ubuntu-gtk4/lib/python3.10/site-packages
- name: check linking 1
run: ldd /home/runner/install/chapi-Linux-ubuntu-gtk4/lib/python3.10/site-packages/chapi.cpython-310-x86_64-linux-gnu.so
- name: test with chapi-using script
run: which python3 && cat python-tests/test_chapi2.py && python3 python-tests/test_chapi2.py
- name: where are we?
run: pwd && ls -lt
- name: make test-molecules-container
run: cd build-libcootapi && make test-molecules-container
- name: run the test-molecules-container test
# this needs the monomer library
env:
MOORHEN_TEST_DATA_DIR: ../test-data
run: cd build-libcootapi && echo ./test-molecules-container