Skip to content

Commit 41df4bf

Browse files
committed
added cache of mrtrix install and remove build download
1 parent ba5dd69 commit 41df4bf

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/auto-gen.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ jobs:
6363
cmakeVersion: '3.16.3'
6464
- name: Print CMake version
6565
run: cmake --version
66+
- name: Create MRtrix install directory
67+
run: |
68+
sudo mkdir -p ${{ env.MRTRIX_INSTALL }}
69+
sudo chown $USER ${{ env.MRTRIX_INSTALL }}
70+
- name: Cache MRtrix Install
71+
id: cache-install
72+
uses: actions/cache@v4
73+
with:
74+
path: ${{ env.MRTRIX_INSTALL }}
75+
key: mrtrix-${{ env.MRTRIX_VERSION }}-${{ runner.os }}
6676
- name: Clone latest MRtrix and switch to latest tag
6777
run: |
6878
mkdir $MRTRIX_HOME

.github/workflows/ci-cd.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ jobs:
5252
cmakeVersion: '3.16.3'
5353
- name: Print CMake version
5454
run: cmake --version
55+
56+
- name: Create MRtrix install directory
57+
run: |
58+
sudo mkdir -p ${{ env.MRTRIX_INSTALL }}
59+
sudo chown $USER ${{ env.MRTRIX_INSTALL }}
60+
61+
- name: Cache MRtrix Install
62+
id: cache-install
63+
uses: actions/cache@v4
64+
with:
65+
path: ${{ env.MRTRIX_INSTALL }}
66+
key: mrtrix-${{ env.MRTRIX_VERSION }}-${{ runner.os }}
67+
5568
- name: Clone latest MRtrix and switch to latest tag
5669
run: |
5770
mkdir $MRTRIX_HOME
@@ -205,11 +218,6 @@ jobs:
205218
# checkout@v2 adds a header that makes branch protection report errors
206219
# because the Github action bot is not a collaborator on the repo
207220
run: git config --local --unset http.https://github.com/.extraheader
208-
- name: Download auto-gen pydra
209-
uses: actions/download-artifact@v4
210-
with:
211-
name: AutoGen
212-
path: pydra/tasks/mrtrix3/${{ env.SUBPKG_NAME }}
213221
- name: Strip auto package from gitignore so it is included in package
214222
run: |
215223
sed -i '/\/pydra\/tasks\/mrtrix3\/${{ env.SUBPKG_NAME }}/d' .gitignore

0 commit comments

Comments
 (0)