Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub action for vagrant up #19

Merged
merged 15 commits into from
Apr 28, 2021
Merged

Add GitHub action for vagrant up #19

merged 15 commits into from
Apr 28, 2021

Conversation

MakisH
Copy link
Member

@MakisH MakisH commented Apr 28, 2021

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:

  • Enables cleanup by default again, as we now also package the box.
  • Cleanup the downloaded solver archives after they have been extracted.
  • Replace ~ with ${HOME} in environment variables for portability: the run scripts, for example, do not understand ~.
  • Use the openfoam2012 session instead of loading the OpenFOAM bashrc file: it was causing strange unrelated errors, probably due to shell incompatibilities.

@MakisH MakisH self-assigned this Apr 28, 2021
@MakisH MakisH marked this pull request as ready for review April 28, 2021 07:56
@MakisH MakisH marked this pull request as draft April 28, 2021 08:02
@MakisH MakisH marked this pull request as ready for review April 28, 2021 08:02
@MakisH MakisH marked this pull request as draft April 28, 2021 08:35
@MakisH MakisH marked this pull request as ready for review April 28, 2021 08:39
@MakisH MakisH marked this pull request as draft April 28, 2021 09:12
@MakisH MakisH marked this pull request as ready for review April 28, 2021 09:12
@MakisH MakisH marked this pull request as draft April 28, 2021 10:26
@MakisH MakisH marked this pull request as ready for review April 28, 2021 10:27
@MakisH MakisH marked this pull request as draft April 28, 2021 10:29
@MakisH MakisH marked this pull request as ready for review April 28, 2021 10:29
@MakisH MakisH marked this pull request as draft April 28, 2021 10:31
@MakisH MakisH marked this pull request as ready for review April 28, 2021 10:31
@MakisH MakisH marked this pull request as draft April 28, 2021 12:41
@MakisH MakisH marked this pull request as ready for review April 28, 2021 12:41
@MakisH MakisH marked this pull request as draft April 28, 2021 12:43
@MakisH MakisH marked this pull request as ready for review April 28, 2021 12:43
@MakisH MakisH merged commit 4c440df into develop Apr 28, 2021
@MakisH MakisH deleted the action-vagrant branch April 28, 2021 14:52
@MakisH MakisH mentioned this pull request Apr 28, 2021
MakisH added a commit that referenced this pull request Apr 30, 2021
* Make provisioning scripts run in unprivileged mode + more (#17)
* Move install-vscode to home
* Enable object files clean-up by default
* Move cleanup steps to cleanup.sh
* Add GitHub action to lint shell scripts (#18)
* Add GitHub action for vagrant up + a few fixes (#19)
* Add code_aster (#20)
* Disable screensaver and screen lock (#21)
* Update README, add instructions for testing
* Add alias for config-visualizer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant