Run project on macOS and docker/Ubuntu?

ruby
docker
macos

#1

I am working on a project that until now was only built on macOS. In a branch I now modified the .circle/config.yml so it successfully builds on Docker, an Ubuntu/ruby image.

Can I also somehow configure it to build on both environments?
My steps are pretty similar - how would I best structure my config.yml file?


#2

This looks relevant:
https://circleci.com/docs/2.0/sample-config/#sample-configuration-with-multiple-executor-types-macos--docker


#3

Yes, that linked showed me how to run in two different OSes at the same time.

I combined it with the better naming from the parallel-jobs workflow example:


https://circleci.com/workflow-run/bf933257-9613-4705-93b5-513b754870c2

Works quite well! :smiley:


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.