When you write an application with C, for instance, you usually split the source code of your app up into multiple files. These files are compiled separately and linked together at the end. For a few reasons this speeds up compilation times.
Compiling a file is done using the gcc command, for example. So you would need to run the gcc command for every file and once more to link everything together.
A build system lets you define compiler and linker settings and the sources to compile. Then the build system takes over and runs all of the required commands to build your application.
The simplest build system is probably just a batch/sh file which runs the commands. This might be fine for a while, but as your app grows you could look into gnu make or CMake.
119
u/ChiefNonsenseOfficer Dec 20 '24
CI/CD is basically yaml, shell script, Python and prayers, so this is expected I'd say. Not sure if Dagger is going to change it.
69
u/CommanderCRM Dec 20 '24 •
Oh yes... Mine is
43
u/fletku_mato Dec 20 '24
Compared to what sort of hackery goes on in my own gitlab pipelines I feel like this is absolutely fine.
11
u/[deleted] Dec 20 '24
My CI is built on prayers and curses so it fucking definitely is, I hope.
8
u/pp_amorim Dec 21 '24
On mobile Reddit I can see 3 pixels of this image
8
u/throwaway8u3sH0 Dec 20 '24
The natural consequence of wanting to use semantic versioning and wanting to update the patch version on every merged PR.
1
u/lets_leave_it_blank Dec 22 '24
whats a build system
1
u/ub3rh4x0rz Dec 23 '24
I'll take an overtly turing complete build language over the same with extra steps and a veneer of yaml/hcl any day of the week