@@ -164,89 +164,36 @@ jobs:
164164 conan export --user oss --channel main import/nuraft_mesg
165165 if : ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}
166166
167- - name : Build Cache
167+ - name : Create and Test Package
168168 run : |
169+ sanitize=$([[ "${{ inputs.tooling }}" == "Sanitize" ]] && echo "True" || echo "False")
169170 pre=$([[ "${{ inputs.build-type }}" != "Debug" ]] && echo "-o iomgr/*:prerelease=${{ inputs.prerelease }}" || echo "")
170171 echo "Disk space usage"
171172 sudo df -h
172173 sudo ls -l /tmp
173174 sudo rm -rf $ANDROID_HOME
174175 echo "Disk space usage after cleanup"
175176 sudo df -h
176- conan install \
177- -c tools.build:skip_test=True \
177+ conan build \
178178 ${pre} \
179179 -o sisl/*:malloc_impl=${{ inputs.malloc-impl }} \
180180 -o iomgr/*:testing=off \
181181 -o homestore/*:testing=off \
182+ -o homeobject/*:sanitize=${sanitize} \
182183 -s:h build_type=${{ inputs.build-type }} \
183- -c tools.build:skip_test=True \
184+ -s:h compiler.cppstd=23 \
184185 --format=json \
185186 --build missing \
186187 . > ~/build.json
187188 conan list --graph ~/build.json --graph-binaries=build --format=json > ~/pkglist.json
188- if : ${{ steps.restore-cache.outputs.cache-hit != 'true ' }}
189+ if : ${{ inputs.testing == 'True' && inputs.tooling != 'Coverage ' }}
189190
190191 - name : Save Conan Cache
191192 uses : eBay/sisl/.github/actions/store_conan2@master
192193 with :
193194 key_prefix : HomeObjectDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
194195 if : ${{ github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}
195196
196- - name : Reload Sisl Cache
197- uses : eBay/sisl/.github/actions/load_conan2@master
198- with :
199- load_any : ' True'
200- key_prefix : SislDeps13-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}
201- if : ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}
202-
203- - name : Reload IOMgr Cache
204- uses : eBay/sisl/.github/actions/load_conan2@master
205- with :
206- load_any : ' True'
207- key_prefix : IOMgrDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
208- if : ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}
209-
210- - name : Reload NuRaftMesg Cache
211- uses : eBay/sisl/.github/actions/load_conan2@master
212- with :
213- testing : ' False'
214- path : import/nuraft_mesg
215- key_prefix : NuMesgDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}
216- fail_on_cache_miss : true
217- if : ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}
218-
219- - name : Reload HomeStore Cache
220- uses : eBay/sisl/.github/actions/load_conan2@master
221- with :
222- testing : ' False'
223- path : import/homestore
224- key_prefix : HomestoreDeps-${{ inputs.platform }}-${{ inputs.build-type }}-${{ inputs.malloc-impl }}-${{ inputs.prerelease }}
225- fail_on_cache_miss : true
226- if : ${{ inputs.testing == 'True' && github.event_name != 'pull_request' && steps.restore-cache.outputs.cache-hit != 'true' }}
227-
228- - name : Setup tmate session
229- uses : mxschmitt/action-tmate@v3
230- with :
231- limit-access-to-actor : true
232- detached : true
233- if : ${{ inputs.testing == 'True' }}
234-
235- - name : Create and Test Package
236- run : |
237- sanitize=$([[ "${{ inputs.tooling }}" == "Sanitize" ]] && echo "True" || echo "False")
238- pre=$([[ "${{ inputs.build-type }}" != "Debug" ]] && echo "-o iomgr/*:prerelease=${{ inputs.prerelease }}" || echo "")
239- conan create \
240- ${pre} \
241- -o sisl/*:malloc_impl=${{ inputs.malloc-impl }} \
242- -o iomgr/*:testing=off \
243- -o homestore/*:testing=off \
244- -o homeobject/*:sanitize=${sanitize} \
245- -s:h build_type=${{ inputs.build-type }} \
246- --build missing \
247- .
248- if : ${{ inputs.testing == 'True' && inputs.tooling != 'Coverage' }}
249-
250197 - name : Code Coverage Run
251198 run : |
252199 pre=$([[ "${{ inputs.build-type }}" != "Debug" ]] && echo "-o iomgr/*:prerelease=${{ inputs.prerelease }}" || echo "")
@@ -257,6 +204,7 @@ jobs:
257204 -o homestore/*:testing=off \
258205 -o homeobject/*:coverage=True \
259206 -s:h build_type=${{ inputs.build-type }} \
207+ -s:h compiler.cppstd=23 \
260208 --build missing \
261209 .
262210 if : ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}
0 commit comments