In rare cases, project build may require different configuration depending on operating system that runs the build. In Maven, it can be done with Maven Profiles. how to configure profiles per operating system the trick to activate profile on Linux but not on Mac how to enforce presence of active profile with maven-enforcer-plugin how to run build on different operating systems with GitHub action