Skip to content

Added option to create links of scripts in installation #580

Added option to create links of scripts in installation

Added option to create links of scripts in installation #580

Workflow file for this run

name: Build Xmipp
on:
pull_request:
jobs:
build:
strategy:
matrix:
os:
- 'ubuntu-latest'
cuda:
- {version: '11.8.0', method: 'network'}
- {version: '12.2.2', method: 'network'}
- {version: 'None'}
compiler:
- {cc: gcc, cxx: g++}
include:
- os: 'ubuntu-20.04'
cuda: {version: '11.3.1', method: 'network'}
compiler: {cc: gcc-9, cxx: g++-9, update-alternatives: True}
- os: 'ubuntu-20.04'
cuda: {version: '10.2.89', method: 'local'}
compiler: {cc: gcc-8, cxx: g++-8, update-alternatives: True}
runs-on: ${{ matrix.os }}
env:
SEND_INSTALLATION_STATISTICS: "False"
steps:
- 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 ${{ matrix.compiler.cc }} ${{ matrix.compiler.cxx }}
- if: ${{matrix.compiler.update-alternatives}}
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler.cc }} 128
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/${{ matrix.compiler.cxx }} 128
- uses: actions/setup-python@main
with:
python-version: '3.9.15'
- run: |
python -m pip install --upgrade pip
python -m pip install numpy
- uses: Jimver/cuda-toolkit@master
if: matrix.cuda.version != 'None'
id: cuda-toolkit
with:
cuda: ${{ matrix.cuda.version }}
method: ${{ matrix.cuda.method }}
sub-packages: ${{ matrix.cuda.method=='network' && '["nvcc", "toolkit"]' || '[]' }} # Fake ternary operator
- uses: actions/checkout@main
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- 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 --keep-output || (cat compilation.log && false)