Skip to content

Commit

Permalink
build-ants.yml: Make sure sed -i is used
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacwnewton committed May 16, 2022
1 parent 6849dc8 commit a171bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-ants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ jobs:
# https://github.com/ANTsX/ANTs/blob/b37e8b56e4e518b0f2947f80d0e3701a5ddfe120/SuperBuild/External_ITKv5.cmake#L154
# i.e. the ITK commit specified by the version of ANTs we're currently using.
- name: 'WORKAROUND: Apply fix for `lrintf` issue in ITK dependency'
run: sed '93,120d' antsbin/ITKv5/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h
run: sed -i '93,120d' antsbin/ITKv5/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h
- name: 'WORKAROUND: Skip ITK clone in Superbuild'
run: |
# These `sed` commands remove the git project settings from the `ExternalProject_Add` cmake function call
sed '/ GIT_REPOSITORY ${${proj}_REPOSITORY}/d' SuperBuild/External_ITKv5.cmake
sed '/ GIT_TAG ${${proj}_GIT_TAG}/d' SuperBuild/External_ITKv5.cmake
sed -i '/ GIT_REPOSITORY ${${proj}_REPOSITORY}/d' SuperBuild/External_ITKv5.cmake
sed -i '/ GIT_TAG ${${proj}_GIT_TAG}/d' SuperBuild/External_ITKv5.cmake
########################################### END OF ITK WORKAROUND ################################################

- name: cmake generate
Expand Down

0 comments on commit a171bb6

Please sign in to comment.