I’m just wondering if there is a way (Linux / Unix) to update a Github repository when a particular file has compiled successfully?
So for example, I have a repository called ‘Work’ and if I compiled the file main.cpp and if it compiles successfully it automatically synchronises the file / repository on Github.
I hope this makes sense and someone can help me :)!
Thankss 🙂
If you can get and analyze results of running gcc (exit-code or grepping output), you can do what you want in rather easy and small (2-3-liner) shell script, can’t see any troubles here.
From my side I see your workflow as not bullet-proof (if you push sporadically, you have good chances to lost a lot of local work in case of disaster), just for sake I’ll prefer “push all, tag compilable changeset”