StrataSource / FGD

The FGD + Hammer resource files for games built on Strata Source.
20 stars 15 forks source link

Consolidation of build scripts + github action #32

Closed braem closed 3 years ago

braem commented 3 years ago

Closes https://github.com/ChaosInitiative/Chaos-FGD/issues/21 Closes https://github.com/ChaosInitiative/Chaos-FGD/issues/23

Consolidates build scripts into one, with a menu, for both linux and windows.

Adds a github action that builds the FGD & copies folders over, using the new scripts. Has both linux and windows build jobs. Action also uploads an artifact for each job which contains only the built FGDs to speed up and lower size of upload (folders are just copied and so we can get them from the repo).

Also I found that linux and windows building is not the same. Linux specifically fails to have some sphere(*)'s present in the windows build. It's either a unify_fgd.py or srctools issue, which can be remedied later. For now it'd be best to use the windows artifact if for whatever reason we need it.

Might want to make master protected now. I don't think we need a dev branch so I didn't add that as a trigger.

braem commented 3 years ago

My bad I meant to reject, gotta fix up the .sh file then I'm good.

I did & removed the chmod's from the workflow.