Skip to content

Commit

Permalink
added ants installation to ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 20, 2024
1 parent b991b6f commit fcc7bf3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ jobs:
python-version: ['3.8', '3.11']
steps:

- name: Install prerequisite packages
run: sudo apt install -y cmake

- name: Removed unnecessary tools to free space
run: |
sudo rm -rf /usr/share/dotnet
Expand All @@ -123,8 +126,20 @@ jobs:

- name: Install ants Package
run: |
echo "NOT IMPLEMENTED YET"
exit 1 # This is a placeholder for the actual install command
workingDir=${PWD}
git clone https://github.com/ANTsX/ANTs.git
mkdir build install
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=${workingDir}/install \
../ANTs 2>&1 | tee cmake.log
make -j 4 2>&1 | tee build.log
cd ANTS-build
make install 2>&1 | tee install.log
echo "PATH=${workingDir}/install/bin:$PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=${workingDir}/install/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
which antsRegistration
antsRegistrationSyN.sh -h
- name: Download tasks converted from Nipype
uses: actions/download-artifact@v3
Expand Down

0 comments on commit fcc7bf3

Please sign in to comment.