Closed bwrsandman closed 1 year ago
@bwrsandman thanks, this was a long standing problem indeed, that is the MSVC environment is setup only when the configure preset being used. I pushed on run-cmake@main
a version that fixes this, and I plan to publish it soon.
Tested it in https://github.com/openblack/openblack/pull/608 and it works now
Following discussion in #113. I am attempting this configuration where I remove
configurePreset
on the 2nd and 3rd use oflukka/run-cmake
The reason why I do two runs after configuration is to reduce the size of my run matrix. This makes it so half the runners are spawned and the time spent in setup and cmake configure is saved (especially during cache misses). When I used
lukka/run-vcpkg@v10
it also reduced the size of my caches. It may well be a lot less now withv11
.Removing
configurePreset
on subsequent runs causes a strange error about being unable to findfloat.h
https://github.com/openblack/openblack/actions/runs/5266766498/jobs/9521754716
I'm pretty sure it's because
Setup MSVC C/C++ toolset environment variables
is not being setup in the two build invocations. Only in the configuration action.These issues do not happen with: