Do not crash if spline is requested with only 1 control point - this … #9
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 Ubuntu | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: wget test data | |
run: wget -nv https://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/data/greg-data.tar.gz | |
- name: Untar test data | |
run: cd src && tar xf ../greg-data.tar.gz && cd - | |
- name: cache test data | |
id: cache-coot-test-data | |
uses: actions/cache@v4 | |
with: | |
path: src/greg-data | |
key: coot-test-data | |
- name: Cache coot dependencies | |
id: cache-coot-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /home/runner/install/coot-Linux-ubuntu-gtk4 | |
key: coot-deps-ubuntu | |
- name: Cache gemmi source | |
id: Cache-gemmi-source | |
uses: actions/cache@v4 | |
with: | |
path: gemmi | |
key: coot-build-ubuntu-gemmi-cache-source | |
- name: Cache gemmi build | |
id: Cache-gemmi-build | |
uses: actions/cache@v4 | |
with: | |
path: build-gemmi | |
key: coot-build-ubuntu-gemmi-cache-build | |
- name: List any installed Coot libs | |
run: ls -l /home/runner/install/coot-Linux-ubuntu-gtk4/lib/libcoot* /home/runner/install/coot-Linux-ubuntu-gtk4/lib/libMoleculesToTrianglesCXXClasses* | |
- name: Delete any installed Coot libs | |
run: rm /home/runner/install/coot-Linux-ubuntu-gtk4/lib/libcoot* /home/runner/install/coot-Linux-ubuntu-gtk4/lib/libMoleculesToTrianglesCXXClasses* | |
- name: download the monomer library | |
run: wget -nv https://github.com/MonomerLibrary/monomers/archive/refs/tags/ccp4-8.0.016.tar.gz | |
# note that the data directory exists in the coot repo (which is where we are) | |
- name: untar the monomer library | |
run: pwd && cd data && tar xf ../ccp4-8.0.016.tar.gz && ln -s monomers-ccp4-8.0.016 monomers | |
- name: Update apt-get | |
run: sudo apt-get update | |
- name: Install system dependencies | |
run: sudo apt-get install cmake libdw-dev libncurses5-dev libgtk-4-dev libvorbis-dev libasound2-dev | |
- name: Where are we? | |
run: pwd | |
- name: Run build-with-build-it-3-3 | |
run: bash build-it-3-3 || echo done | |
- name: Run autogen.sh | |
run: bash autogen.sh | |
- name: Set the PATH | |
# the install dir is set specifically in build-it-3-3 when we in github actions | |
run: echo /home/runner/install/coot-Linux-ubuntu-gtk4/bin >> $GITHUB_PATH | |
- name: Run configure | |
# we echo done so that this returns a success status so that the logs are always uploaded | |
run: > | |
./configure --prefix=/home/runner/install/coot-Linux-ubuntu-gtk4 | |
--enable-silent-rules | |
--with-enhanced-ligand-tools | |
--with-fftw-prefix=/home/runner/install/coot-Linux-ubuntu-gtk4 | |
--with-boost=/home/runner/install/coot-Linux-ubuntu-gtk4 | |
--with-gemmi=/home/runner/install/coot-Linux-ubuntu-gtk4 | |
--with-boost-libdir=/home/runner/install/coot-Linux-ubuntu-gtk4/lib | |
--with-backward --with-libdw --with-sound --disable-static | |
SHELL=/bin/bash | |
PYTHON=/home/runner/install/coot-Linux-ubuntu-gtk4/bin/python3 | |
PKG_CONFIG_PATH=/home/runner/install/coot-Linux-ubuntu-gtk4/lib64/pkgconfig:/home/runner/install/coot-Linux-ubuntu-gtk4/lib/pkgconfig:/home/runner/install/coot-Linux-ubuntu-gtk4/lib/x86_64-linux-gnu/pkgconfig | |
|| echo done | |
- name: Compile with make | |
run: make -j 4 || echo done | |
- name: Install with make install | |
run: make install || echo done | |
- name: Upload config.log | |
uses: actions/upload-artifact@v4 | |
with: | |
name: upload-config-log-package | |
path: ./config.log | |
retention-days: 3 | |
- name: Upload build logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-logs-public-html-package | |
path: /home/runner/public_html | |
retention-days: 3 | |
- name: Does it run? | |
env: | |
COOT_REFMAC_LIB_DIR: /home/runner/work/coot/coot # "data/monomers" is added before "a/ATP.cif" (say) | |
run: cd src && ./Coot --no-graphics < /dev/null && cd - | |
- name: Run the Unit Python Tests | |
env: | |
COOT_REFMAC_LIB_DIR: /home/runner/work/coot/coot | |
COOT_TEST_DATA_DIR: ../src/greg-data | |
run: cd python-tests && ../src/Coot --no-graphics --script run_the_unit_tests.py && cd - | |
- name: Upload binaries | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ubuntu-binaries-package | |
path: /home/runner/install | |
retention-days: 3 | |