Skip to content

Commit bd2997e

Browse files
committed
gha: build - change cache keys to matrix.os, include matrix.os also in artifact, set build version to nightly
1 parent ff31420 commit bd2997e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ env:
2121
# Compiler: -DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER} -DCMAKE_C_COMPILER:FILEPATH=${CMAKE_C_COMPILER}
2222
ITK_CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING:BOOL=OFF -DITK_USE_64BITS_IDS:BOOL=ON -DModule_ITKReview:BOOL=ON -DModule_HigherOrderAccurateGradient:BOOL=ON -DModule_SplitComponents:BOOL=ON -DModule_ITKVtkGlue:BOOL=ON
2323
OPENIA_CMAKE_OPTIONS: -DopeniA_CUDA_ENABLED:BOOL=OFF -DModule_CommonImageFilters:BOOL=ON -DModule_FeatureCharacteristics:BOOL=ON -DModule_MetaFilters:BOOL=ON -DModule_Metrics:BOOL=ON -DModule_Segmentation:BOOL=ON -DModule_Surfaces:BOOL=ON -DModule_4DCT:BOOL=ON -DModule_AdaptiveThreshold:BOOL=ON -DModule_BoneThickness:BOOL=ON -DModule_CompVis:BOOL=ON -DModule_DreamCaster:BOOL=ON -DModule_DynamicVolumeLines:BOOL=ON -DModule_FeatureAnalyzer:BOOL=ON -DModule_FeatureAnalyzerComputation:BOOL=ON -DModule_FeatureScout:BOOL=ON -DModule_FiAKEr:BOOL=ON -DModule_FilterPreview:BOOL=ON -DModule_FoamCharacterization:BOOL=ON -DModule_FuzzyFeatureTracking:BOOL=ON -DModule_GEMSe:BOOL=ON -DModule_InSpectr:BOOL=ON -DModule_Labelling:BOOL=ON -DModule_NModalTF:BOOL=ON -DModule_Remote:BOOL=ON -DModule_TripleHistogramTF:BOOL=ON -DModule_Uncertainty:BOOL=ON -DModule_VolumePlayer:BOOL=ON
24+
OPENIA_BUILD_VERSION: nightly
2425
QT_VERSION: 6.8.2
2526
VTK_VERSION: 9.4.1
2627
VTK_SHORTVER: 9.4
@@ -112,7 +113,7 @@ jobs:
112113
id: cache-openxr
113114
with:
114115
path: openxr-${{ env.OPENXR_VERSION }}
115-
key: ${{ runner.os }}-openxr-${{ env.OPENXR_VERSION }}
116+
key: ${{ matrix.os }}-openxr-${{ env.OPENXR_VERSION }}
116117
- if: ${{ (runner.os == 'Windows' && steps.cache-openxr.outputs.cache-hit != 'true' ) }}
117118
name: Download and extract OpenXR
118119
run: |
@@ -134,7 +135,7 @@ jobs:
134135
id: cache-openvr
135136
with:
136137
path: openvr-${{ env.OPENVR_VERSION }}
137-
key: ${{ runner.os }}-openvr-${{ env.OPENVR_VERSION }}
138+
key: ${{ matrix.os }}-openvr-${{ env.OPENVR_VERSION }}
138139
- if: ${{ ((runner.os == 'Windows') && steps.cache-openvr.outputs.cache-hit != 'true' ) }} # || runner.os == 'Linux'
139140
name: Download and extract OpenVR
140141
run: |
@@ -161,7 +162,7 @@ jobs:
161162
id: cache-boost
162163
with:
163164
path: boost_${{ env.BOOST_VERSION_UNDERSCORE }}
164-
key: ${{ runner.os }}-boost-${{ env.BOOST_VERSION }}
165+
key: ${{ matrix.os }}-boost-${{ env.BOOST_VERSION }}
165166
- if: ${{ ((runner.os == 'Windows') && steps.cache-boost.outputs.cache-hit != 'true' ) }} # || runner.os == 'Linux'
166167
name: Download Boost
167168
run: |
@@ -193,7 +194,7 @@ jobs:
193194
uses: actions/cache@v4
194195
with:
195196
path: vtk-${{ env.VTK_VERSION }}
196-
key: ${{ runner.os }}-qt${{env.QT_VERSION}}-vtk-${{ env.VTK_VERSION }}
197+
key: ${{ matrix.os }}-qt${{env.QT_VERSION}}-vtk-${{ env.VTK_VERSION }}
197198

198199
- if: ${{ ( runner.os == 'Linux' && steps.cache-vtk.outputs.cache-hit != 'true' ) }}
199200
name: VTK install prerequisites (Linux)
@@ -225,7 +226,7 @@ jobs:
225226
uses: actions/cache@v4
226227
with:
227228
path: opencl-${{ env.OPENCL_VERSION }}
228-
key: ${{ runner.os }}-opencl-${{ env.OPENCL_VERSION }}
229+
key: ${{ matrix.os }}-opencl-${{ env.OPENCL_VERSION }}
229230

230231
- if: ${{ (runner.os != 'macOS' && steps.cache-opencl.outputs.cache-hit != 'true') }}
231232
name: Install OpenCL
@@ -284,7 +285,7 @@ jobs:
284285
uses: actions/cache@v4
285286
with:
286287
path: itk-${{ env.ITK_VERSION }}
287-
key: ${{ runner.os }}-qt${{env.QT_VERSION}}-itk-${{ env.ITK_VERSION }}
288+
key: ${{ matrix.os }}-qt${{env.QT_VERSION}}-itk-${{ env.ITK_VERSION }}
288289

289290
- if: steps.cache-itk.outputs.cache-hit != 'true'
290291
name: ITK download, extract, configure, build, install
@@ -320,7 +321,7 @@ jobs:
320321
uses: actions/cache@v4
321322
with:
322323
path: eigen-${{env.EIGEN_SHORTREF}}
323-
key: ${{ runner.os }}-eigen-${{env.EIGEN_SHORTREF}}
324+
key: ${{ matrix.os }}-eigen-${{env.EIGEN_SHORTREF}}
324325
- if: steps.cache-eigen.outputs.cache-hit != 'true'
325326
name: Clone eigen repository
326327
# "workaround" for only checking out a specific commit, from https://stackoverflow.com/a/78674407:
@@ -340,7 +341,7 @@ jobs:
340341
uses: actions/cache@v4
341342
with:
342343
path: hdf5-${{env.HDF5_VERSION}}
343-
key: ${{ runner.os }}-hdf5-${{env.HDF5_VERSION}}
344+
key: ${{ matrix.os }}-hdf5-${{env.HDF5_VERSION}}
344345
- if: steps.cache-hdf5.outputs.cache-hit != 'true'
345346
name: Build hdf5
346347
run: |
@@ -382,7 +383,7 @@ jobs:
382383
- name: Create zip archive
383384
uses: actions/upload-artifact@v4
384385
with:
385-
name: open_iA-${{runner.os}}-latest.zip
386+
name: open_iA-${{matrix.os}}-${{env.OPENIA_BUILD_VERSION}}.zip
386387
path: ${{github.workspace}}/install
387388
if-no-files-found: error
388389
overwrite: true

0 commit comments

Comments
 (0)