Stream: IG creation
Topic: using github actions to run ig build
Mohammad Jafari (Mar 30 2020 at 18:58):
As the traffic and lineup seems to be getting heavier and longer for the ig build workers, I am wondering if there is a command-line version if the IG build we can encourage people to add to their github actions so that at least build failures are offloaded to github action-based CI run on github servers.
Grahame Grieve (Mar 30 2020 at 19:10):
that's what the ci-build is
Mohammad Jafari (Mar 30 2020 at 19:51):
I understand that but being able to run the ig builder tool as a github action has the benefit of: a) offloading some of the load of running the CI to github servers by ensuring only successful builds are passed on to the online ig builder, b) being able to see build failures on the pull request before merging and waiting to see if it works.
I understand that this is not a priority but if there are instructions on how to run the ig builder tool in command-line I will spend time and hopefully contribute this to the template.
Jose Costa Teixeira (Mar 30 2020 at 19:56):
I don't follow - do you want to do the build locally?
Grahame Grieve (Mar 30 2020 at 19:57):
the ci-build runs on PR requests
Grahame Grieve (Mar 30 2020 at 19:57):
why would you commit something that doesn't build?
Jean Duteau (Mar 30 2020 at 19:58):
Grahame Grieve said:
why would you commit something that doesn't build?
+1 to this question. It seems like you aren't running the ig-publisher locally first to make sure your build successfully runs?
Mohammad Jafari (Mar 30 2020 at 20:02):
Yes I want to run the build locally but on command-line so that I can automate it. Is this possible?
Jean Duteau (Mar 30 2020 at 20:02):
yes. you are supposed to run it locally first before you push your changes
Mohammad Jafari (Mar 30 2020 at 20:03):
Thanks @Jean Duteau I am only aware of the ig builder UI; can I run it on command line without a GUI?
Jean Duteau (Mar 30 2020 at 20:04):
yes, that's the only way that I run it.
Jean Duteau (Mar 30 2020 at 20:05):
depends on your template, but there should be a _genXXX script that you can run that will run the publisher
Jose Costa Teixeira (Mar 30 2020 at 20:08):
click on _genOnce.bat / .sh if you have it. If you don't, get it here:
https://github.com/FHIR/sample-ig
Grahame Grieve (Mar 30 2020 at 20:08):
the GUI only runs if you don't pass a command line parameter to the publisher
Chris Moesel (Mar 30 2020 at 21:08):
Last updated: Apr 12 2022 at 19:14 UTC