I am trying to migrate from Travis to GitHub Actions for CI with the OpenFOAM code base with Ubuntu 20.04 as OS in Actions.
OpenFOAM uses a bash file to set up its own environment ( OpenFOAM-dev/bashrc at f60252ff7b4090de1d5bbead1736a0dda76fd634 · OpenFOAM/OpenFOAM-dev · GitHub ), however, when trying to execute this script immediately after installing the OpenFOAM package using apt-get, the process terminates with exit code 1, without further details.
Is there a way to use scripts like these without having to modify them as shown here Workflow commands for GitHub Actions - GitHub Docs , which would be quite impractical considering the complexity of the script?
As a reference, in Travis CI, this works by sourcing the file directly with:
in the “before_script” section.