@@ -112,7 +112,7 @@ jobs:
112112 # The true at the end is to ignore errors that i.e. occur when the folders do not exist
113113 run : rm -r $SC_BUILD || true
114114 - name : make folders
115- run : mkdir -p $SC_DEBUG $SC_RELEASE
115+ run : mkdir -p $SC_DEBUG $SC_RELEASE $SC_BUILD
116116 if : ${{ steps.sc_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
117117 - name : install sc
118118 run : echo "Install sc"
@@ -169,6 +169,13 @@ jobs:
169169 - name : Cache info
170170 if : ${{ steps.p4est_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
171171 run : echo No cache found or cache will be ignored. IGNORE_CACHE=$IGNORE_CACHE
172+ - name : if ignore cache, delete folders
173+ if : ${{ steps.p4est_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
174+ # The true at the end is to ignore errors that i.e. occur when the folders do not exist
175+ run : rm -r $P4EST_BUILD || true
176+ - name : make folders
177+ if : ${{ steps.p4est_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
178+ run : mkdir -p $P4EST_DEBUG $P4EST_RELEASE $P4EST_BUILD
172179 - name : install p4est
173180 run : echo "Install p4est"
174181 if : ${{ steps.p4est_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
@@ -181,13 +188,6 @@ jobs:
181188 cd p4est
182189 git fetch
183190 git checkout ${{ env.p4est_commit }}
184- - name : if ignore cache, delete folders
185- if : ${{ steps.p4est_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
186- # The true at the end is to ignore errors that i.e. occur when the folders do not exist
187- run : rm -r $P4EST_BUILD || true
188- - name : make folders
189- if : ${{ steps.p4est_cmake_cache.outputs.cache-hit != 'true' || inputs.IGNORE_CACHE == 1 }}
190- run : mkdir -p $P4EST_DEBUG $P4EST_RELEASE
191191 # # p4est debug
192192 - name : p4est cmake debug
193193 run : cd $P4EST_DEBUG && cmake $P4EST_BUILD/p4est -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$P4EST_DEBUG/install -DP4EST_USE_SYSTEM_SC=ON -DSC_DIR=$SC_DEBUG/install/cmake -DP4EST_ENABLE_MPI=$MPI -GNinja
0 commit comments