precice / vm

Vagrant box with preCICE and examples preinstalled
MIT License
5 stars 4 forks source link

Add GitHub action for vagrant up #19

Closed MakisH closed 3 years ago

MakisH commented 3 years ago

This adds a GitHub Actions workflow to provision the box (run vagrant up), as described in https://github.com/jonashackt/vagrant-github-actions The goal is to check building from a clean state, as usually I try to re-provision while developing. This already helped me find an issue with OpenFOAM that I had not noticed before for this very reason.

Unfortunately, nested virtualization is not supported in Linux runners, only on macOS runners. I am using the currently latest "stable" image macos-10.15.

This also packages the box and uploads it to the artifacts, retaining it for 7 days. The artifact is expected to be ~4-5GB.

Publishing is not covered here: Would be additional work to setup right now, while I prefer doing releases when I feel this is needed. The labor hurdle for publishing once in a while is not really significant here.

This workflow should run only when a PR is marked as "ready for review", to save resources, as each job should take a long time (~1h). The time limits seem to be enough (6h/job).

Additional side-fixes: