-
Notifications
You must be signed in to change notification settings - Fork 173
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
Separate platforms at GitHub Actions per workflow-file #313
Comments
I also noticed that there are many skipped steps, and I was wondering if we can get rid of them. From the Travis CI experience (travis.yml) I know that the main complexity is the need to support various build/test configurations (CMake/Autoconf, Debug/Release, sanitizers, skeleton tests, etc.). Duplicating all that logic for every platform may be tedious. And when the build does fail, it is not so difficult to filter out the skipped steps in the GitHub UI. Therefore I'd rather wait to see what will be the end result, and then decide on whether to separate the configs for different platforms. However, if you have a strong opinion, feel free do split now. I'm still reading the docs trying to understand if there is a way to include other actions. |
Okay, let's leave this open for now and see what will be the end result. This is perfectly fine to me. Thank you for the feedback :) |
@sergeyklay I've come up with the following approach: 07d7491 (this is an example for |
I managed to sort it out: after changing the |
Yeah, it's common practice. However, I would not like to play this card now :) My typical strategy for such tasks is: "Keep all things in one place for as long as you can so that any user can find all things together" and "Don't force users to wander around the project to understand how to build it."
|
Makes sense! |
Hi folks, It looks like the github action for windows is generating a chocolatey package, but it doesn't appear to be updated on chocolatey.org (it's on v1.3). |
Hi Nick, as far as I understand we use chocolatey in ci.yml to get bison on Windows, and it has nothing to do with the latest re2c version supported by chocolatey. Why do you say it's generating a package? You should contact the maintainer of the package. If I'm not mistaken it's Nuno Lopes: https://github.com/nunoplopes/chocore2c, and the package is https://community.chocolatey.org/packages/re2c. Or just send a pull request there. |
I think we defenitely should build binaries for every platform and attach binaries to the release |
Do you think we could extract macOS and Windows binaries from the GitHub Actions builds? |
Yes, I did this in other projects. There are artifacts, you can store after each build and then attach to a release automatically |
Nice! |
Hello,
I'd like propose to separate current GitHub Actions' workflow-file to something like this:
My desire is mainly due to the fact that the current workflow configuration already looks overloaded. But we have not yet added to its matrix the various options that are present at Travis CI. In other words, it will be even more complicated. For example, take a look at current Linux job:
It's obviously that 50% of workflow configuration is not used for Linux builds. A similar picture for macOS as well as Windows builds.
If we split the workflow configuration as described above, there will be some redundancy due to the fact that GitHub Actions' workflows cannot use inheritance or injection. Therefore, some configuration parts will be repeated. However, in general it will make the process easier, clearer and less error prone.
@skvadrik Let me know if you're OK with this idea and I'll prepare a PR.
The text was updated successfully, but these errors were encountered: