When testing against the mono/netcore runtime we often want to run the actual benchmark with specific runtime configuration. This is achieved through setting the MONO_ENV_OPTIONS environment variable. However, we also want to use different MONO_ENV_OPTIONS when running dotnet restore or dotnet build for performance reasons. It would be nice to allow some way to inject the environment variables but only for the actul benchmark job.
What I currently use is the following hack:
filipnavara/performance@d1768c7
/cc @EgorBo