New CMake based installer. #489
Workflow file for this run
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
# 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) |