FHIR Chat · using github actions to run ig build · IG creation

Stream: IG creation

Topic: using github actions to run ig build


view this post on Zulip 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.

view this post on Zulip Grahame Grieve (Mar 30 2020 at 19:10):

that's what the ci-build is

view this post on Zulip 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.

view this post on Zulip Jose Costa Teixeira (Mar 30 2020 at 19:56):

I don't follow - do you want to do the build locally?

view this post on Zulip Grahame Grieve (Mar 30 2020 at 19:57):

the ci-build runs on PR requests

view this post on Zulip Grahame Grieve (Mar 30 2020 at 19:57):

why would you commit something that doesn't build?

view this post on Zulip 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?

view this post on Zulip 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?

view this post on Zulip Jean Duteau (Mar 30 2020 at 20:02):

yes. you are supposed to run it locally first before you push your changes

view this post on Zulip 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?

view this post on Zulip Jean Duteau (Mar 30 2020 at 20:04):

yes, that's the only way that I run it.

view this post on Zulip 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

view this post on Zulip 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

view this post on Zulip Grahame Grieve (Mar 30 2020 at 20:08):

the GUI only runs if you don't pass a command line parameter to the publisher

view this post on Zulip Chris Moesel (Mar 30 2020 at 21:08):

Also see: https://confluence.hl7.org/display/FHIR/IG+Publisher+Documentation#IGPublisherDocumentation-Runningincommandlinemode


Last updated: Apr 12 2022 at 19:14 UTC