Skip to content

New CMake based installer. #491

New CMake based installer.

New CMake based installer. #491

Workflow file for this run

# Workflow name
name: Build Xmipp
# Specify when the Action should be triggered: when a pull request is opened against the 'devel' or 'master' branch
on:
pull_request:
branches: [devel, master]
jobs:
build:
runs-on: ubuntu-22.04
env:
SEND_INSTALLATION_STATISTICS: "False"
steps:
# Installing apt dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libfftw3-dev libopenmpi-dev libhdf5-dev libtiff5-dev libsqlite3-dev default-jdk git cmake openmpi-bin
# Setting up Python
- uses: actions/setup-python@main
with:
python-version: '3.9.15'
- run: |
python -m pip install --upgrade pip
python -m pip install numpy
# Installing CUDA
- uses: Jimver/cuda-toolkit@master
id: cuda-toolkit
with:
cuda: '11.8.0'
method: network
sub-packages: '["nvcc", "toolkit"]'
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@main
with:
fetch-depth: 0
# Compiling Xmipp in the Pull Request branch
- name: Compile Xmipp will all dependencies in branch ${{ github.head_ref }} (if such branch exists, default is devel)
env:
BRANCH_NAME: ${{ github.head_ref }}
run: |
echo "XMIPP_LINK_TO_SCIPION=OFF" > xmipp.conf
./xmipp all -b $BRANCH_NAME || (cat compilation.log && false)