-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Document running actions locally and update custom build CI options #350
base: develop
Are you sure you want to change the base?
Conversation
|
||
1. Switch to the directory `.github/workflows/` | ||
2. Edit the inputs in the `build-custom.input` file. | ||
3. [Generate a GitHub access token](https://github.com/settings/personal-access-tokens) and add it to a `.secrets` file with content `GITHUB_TOKEN=<your-token>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step should not be needed, but there seems to be a related issue in act.
|
||
You can also run GitHub Actions locally with [act](https://github.com/nektos/act). | ||
|
||
List the workflows with `act --list`. To simulate a push event, run `act push`. Some workflows might work on GitHub Actions but not on act, in which case you could try running specific workflows with, for example, `act -j 'build'`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In particular, I could run the first tutorial, but not more. It was as if the second solver was not starting.
- ubuntu-22.04 | ||
- ubuntu-20.04 | ||
- ubuntu-18.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub-hosted runners with Ubuntu 18.04 are not available anymore, hence we cannot test OpenFOAM 5 and 6 anymore.
Locally, there is a Docker image that is picked:
Start image=catthehacker/ubuntu:act-18.04
but I am later on getting another error:
[Custom build (manual)/build] ⭐ Run Main Check out repository
[Custom build (manual)/build] 🐳 docker cp src=/home/gc/.cache/act/actions-checkout@v4/ dst=/var/run/act/actions/actions-checkout@v4/
[Custom build (manual)/build] 🐳 docker exec cmd=[node /var/run/act/actions/actions-checkout@v4/dist/index.js] user= workdir=
| OCI runtime exec failed: exec failed: unable to start container process: exec: "node": executable file not found in $PATH: unknown
[Custom build (manual)/build] ❌ Failure - Main Check out repository
[Custom build (manual)/build] exitcode '126': failure
I think we will have to live without testing OpenFOAM.org earlier than 7 for now.
Before we can maintain the adapter for different OpenFOAM versions again, we need a system to build the adapter for different versions locally. We already have a CI workflow for that, but it is a bit cumbersome running it always on GitHub.
This PR:
TODO list:
docs/
changelog-entries/
(create directory if missing)@vidulejs maybe a nice first PR to review and try out the workflow locally. I am looking forward to your comments on what works, what not, and what I could improve.