Add code analysis to Release build

This should make it so code analysis build runs on the CI server.
Previously, it was only set for Debug builds.