Skip to content

Commit

Permalink
added cache step to ANTs install
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Mar 21, 2024
1 parent 0d52b48 commit 39ed34b
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ jobs:
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Checkout repo
uses: actions/checkout@v4

- name: Revert version to most recent version tag on upstream update
if: github.event_name == 'repository_dispatch'
run: git checkout $(git tag -l | grep 'v.*' | tail -n 1 | awk -F post '{print $1}')
- name: Cache ANTs Install
id: cache-install
uses: actions/cache@v4
with:
path: install
key: ants-ubuntu-22.04

- name: Install ANTs Package
if: steps.cache-install.outputs.cache-hit != 'true'
run: |
workingDir=${PWD}
git clone https://github.com/ANTsX/ANTs.git
Expand All @@ -137,11 +138,19 @@ jobs:
echo "Installation completed successfully"
echo "PATH=${workingDir}/install/bin:$PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=${workingDir}/install/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "Checking ANTs installation"
$GITHB_ENV
- name: Check ANTs installation
run: |
which antsRegistration
antsRegistrationSyN.sh -h
- name: Checkout repo
uses: actions/checkout@v4

- name: Revert version to most recent version tag on upstream update
if: github.event_name == 'repository_dispatch'
run: git checkout $(git tag -l | grep 'v.*' | tail -n 1 | awk -F post '{print $1}')

- name: Download tasks converted from Nipype
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 39ed34b

Please sign in to comment.