From fcc7bf30e1beadb35876c8ba3fd667125dd03d28 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Wed, 20 Mar 2024 15:39:03 +1100 Subject: [PATCH] added ants installation to ci-cd --- .github/workflows/ci-cd.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 8a289c0..f48fdd9 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -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 @@ -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