Can I use that with GitHub actions?
I have some crazy slow C/C++ build times with O2 and asan, which usually leads to g++ timing out. Not just 40min build times. Some huge autogenerated testcases to cross-test all iterator combinations against C. I'd really need -O3 for -finline, but -O2, -O3 and -Ofast all fail too build. Splitting it up didn't help. So far I went with #pragma optimize O1.
https://github.com/rurban/ctl/actions/workflows/master.yml
C++ templates are the worst. The pure C variant builds in seconds. I pity all C++ folks
my problem right now is that the OOM killer, is, err, killing compiler processes when asan is enabled. A build machine should have at least twice as much RAM in GB as it has number of cores for compiler processes.
no build should be without https://ccache.dev/, and after that, distcc https://distcc.github.io/, icecream https://github.com/icecc/icecream, and goma https://chromium.googlesource.com/infra/goma/ may be used for distributing the workload.