Skip to content

Fix recent merge conflict #1

Fix recent merge conflict

Fix recent merge conflict #1

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