FOSSEE / eSim

This repository contain source code for new flow of FreeEDA now know as eSim
GNU General Public License v3.0
84 stars 72 forks source link

Automate the packaging of eSim #211

Open Eyantra698Sumanto opened 2 years ago

Eyantra698Sumanto commented 2 years ago

Description

Currently the packaging in eSim is done manually.

However, it is difficult to package everything and follow the steps as new features get added on.

It also takes huge amount of time and the developer also needs to go through a proper checklist.

We need to automate the packaging of eSim to solve the above problems.

Steps to Reproduce

Automate the packaging of eSim.

Expected Behavior

A script/code should package the eSim automatically and the developer must have to do minor changes to the script whenever there are change in modules.

Version and OS

saicharan0112 commented 1 year ago

@Eyantra698Sumanto What do you mean by packaging (I mean which branches are packed together)? I have been developing CI for a few opensource tools. Maybe I can help you in packaging and releasing the eSim automatically.

Eyantra698Sumanto commented 1 year ago

@saicharan0112 Please have a look at the following repository: https://github.com/FOSSEE/eSim/tree/installers/Windows

We are planning to automate the packaging of eSim Windows. Currently, the installers for the same are created manually and then passed to NSIS. But we want to automate the process so that maintenance becomes easy.

Also, Ubuntu Installer is available here: https://github.com/FOSSEE/eSim/tree/installers/Ubuntu

Please give us your valuable comments!!!

Thank You.

saicharan0112 commented 1 year ago

@Eyantra698Sumanto This looks pretty much straight forward to me. It can be done using GHA without any hustle. Do you want me to try for Ubuntu?

Eyantra698Sumanto commented 1 year ago

@saicharan0112 Yes it would be great if you could try and let us know!!!

Eyantra698Sumanto commented 1 year ago

@saicharan0112 If you have any update, please let us know.

saicharan0112 commented 1 year ago

@Eyantra698Sumanto Definitely. I will give an update this week. I was busy with my office work all these days.

saicharan0112 commented 1 year ago

@Eyantra698Sumanto Here is the release that is automatically done by GHA - https://github.com/saicharan0112/eSim/releases/tag/test_tag1

Can you check whether it has all the required files?

If so, I can create a PR so that you people can use it for eSim Ubuntu release

Eyantra698Sumanto commented 1 year ago

@saicharan0112, Thanks a lot. I quickly went through it. Can you please provide us with a doc or readme mentioning the steps on how you automate it using GHA. Also, please correct the file name "nghld.zip" to "nghdl.zip". We will look into other files carefully and give some more comments in some time.

@rahulp13 feel free to comment.

saicharan0112 commented 1 year ago

@Eyantra698Sumanto Checkout these jobs - https://github.com/saicharan0112/eSim/actions/runs/3356398346/jobs/5561435527

Their names should give you the idea of steps.. This GHA should take care of all the steps you mentioned in this readme file https://github.com/FOSSEE/eSim/tree/installers/Ubuntu

saicharan0112 commented 1 year ago

It also create a release whenever you create a tag starting with "v"

Eyantra698Sumanto commented 1 year ago

@saicharan0112 Thanks Sai. It looks quite good. Yes, please create a pull request. If possible create another branch as Automated Packaging and then create a pull request. Also, for Windows, will the GHA be feasible? We are using the NSI script for installation and all stuff.

saicharan0112 commented 1 year ago

@Eyantra698Sumanto I would like to point out two things in this improvement, which I hope you already observed.

Eyantra698Sumanto commented 1 year ago

@saicharan0112

rahulp13 commented 1 year ago

@saicharan0112 your gha for Ubuntu looks promising. Some tweaks may be required, but you can proceed with the PR. Regarding the manual, we can automate it by fetching it from the above URL pattern.

saicharan0112 commented 1 year ago

We could use wget to download the manual or build the manual in gha too... Where the tex files are stored in this repo?

On Mon, 31 Oct, 2022, 7:14 pm Rahul P, @.***> wrote:

@saicharan0112 https://github.com/saicharan0112 your gha for Ubuntu looks promising. Some tweaks may be required, but you can proceed with the PR. Regarding the manual, we can automate it by fetching it from the above URL pattern.

— Reply to this email directly, view it on GitHub https://github.com/FOSSEE/eSim/issues/211#issuecomment-1297113591, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYCOBKNLMM5FMUGJXTQD53TWF7EL7ANCNFSM54PPIOVA . You are receiving this because you were mentioned.Message ID: @.***>

rahulp13 commented 1 year ago

Please check the manual branch. Note that main.tex is the starting file.

saicharan0112 commented 1 year ago

Can you provide the list of commands you all usually follow to build the pdf file using these tex files?

Eyantra698Sumanto commented 1 year ago

@saicharan0112 Generally we do everything in Overleaf. However please have a look here:

saicharan0112 commented 1 year ago

@Eyantra698Sumanto @rahulp13 I am not sure about automating the manual build using GHA cuz it looks like it requires hard-coding the name of latex files and figures, which I usually don't encourage. I see additional files in the manual branch. Can we reorganise the files and images, maybe placing them all in a single folder, so that we can run that folder directly using https://github.com/aslushnikov/latex-online .

saicharan0112 commented 1 year ago

If the manual is first updated in the location https://static.fossee.in/esim/manuals/*, I can just pull "https://static.fossee.in/esim/manuals/eSim_Manual_$tag.pdf" based on the tag you use for release (which is in sync with the release here on github). Hows that?

Eyantra698Sumanto commented 1 year ago

@saicharan0112: https://static.fossee.in/esim/manuals/eSim_Manual_$tag.pdf should be a good solution.

@rahulp13 what's your opinion?

saicharan0112 commented 1 year ago

Any updates on this?

saicharan0112 commented 1 year ago

@saicharan0112 your gha for Ubuntu looks promising. Some tweaks may be required, but you can proceed with the PR. Regarding the manual, we can automate it by fetching it from the above URL pattern.

@rahulp13 What do mean by tweaks? Can't those be in this PR?

Eyantra698Sumanto commented 1 year ago

@saicharan0112 please proceed with https://static.fossee.in/esim/manuals/eSim_Manual_$tag.pdf

saicharan0112 commented 1 year ago

@Eyantra698Sumanto Sure. I was actually waiting for @rahulp13 's comments. I missed his thumbs up reactions. Apparently GitHub won't notify you when emojis are used in conversations.

I will create a PR once I get some time.