tkucic / codesys_workflow_automation

Collection of scripts meant for Codesys IDE that can automate your workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automating the workflow with scripts and github actions

adityasomic opened this issue · comments

Hi @tkucic ,

I have seen your nice work on the script automation for codesys, Indeed scripts are always useful, what I would like to ask you is about the automation of the codesys using the scripts as well as the GitHub actions. Is it using the GitHub actions I want to build the program and run the test , Could you please let me know if it is possible ?

Thank you

Hi, I'm not exactly sure if Codesys IronPython can access the internet directly from Codesys. This can be done from outside of codesys by calling it using the command line interface. The bigger problem here is to have a server that will wait for GitHub's action trigger. So if you get the trigger in your server to run a simple hello world python script, automating the codesys build would be a piece of cake.
You would also need to respond to the GitHub action with a pass/fail flag or something similar to indicate that the build has passed.

I might take a look on this when I have time, seems like an interesting project.

Exactly @tkucic the link between the codesys IDE and the github action runner is missing or I would say the configuration in yaml file for running the job is missing. I came across this post on the stack overflow https://stackoverflow.com/questions/71219117/gitlab-ci-runner-windows-executes-powershell-command-differently-to-local-powers/71489719#71489719

In this example they are trying to do the same , I also tried to the same thing but unfortunately it did not work , If you could take a look into it and let me know does it work for you?

Thanks

Hi @tkucic ,

Hope you are doing good , I would like to ask you did you get any leads about our last discussion ? or any concept how to go forward with it.

Regards,
Aditya