Assembly3 Daily Builder Scripts

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
ceremcem
Posts: 226
Joined: Sun Jan 07, 2018 11:10 am

Assembly3 Daily Builder Scripts

Post by ceremcem »

I've prepared daily build scripts for simplifying Assembly3 Workbench build process: https://github.com/ceremcem/build-freecad-asm3

TL;DR;

Build process boils down to 3 steps from scratch to running FreeCAD:
  1. Create a virtual machine (or you may use your real machine if it's Debian)
  2. Run the installer/updater (may take 5 minutes to an hour at best (for me) depending on source code changes and CPU power provided)
  3. Run FreeCAD-Asm3
Last edited by ceremcem on Sat Sep 29, 2018 9:20 pm, edited 9 times in total.
Mark Szlazak
Posts: 439
Joined: Tue Apr 04, 2017 6:06 pm
Location: SF Bay Area, California

Re: Assembly3 Daily Builder Scripts

Post by Mark Szlazak »

ceremcem wrote: Mon Sep 10, 2018 11:20 pm I've prepared daily build scripts for simplifying Assembly3 Workbench build process: https://github.com/ceremcem/build-freecad-asm3

TL;DR;

Build process boils down to 3 steps from scratch to running FreeCAD:
  • 1. Create a virtual machine (or you may use your real machine)
  • 2. Run the installer/updater
  • 3. Come back after 40 minutes
  • 4. Run FreeCAD-Asm3
Thank you! Maybe a bit of a naive question but why 40 minutes?
User avatar
ceremcem
Posts: 226
Joined: Sun Jan 07, 2018 11:10 am

Re: Assembly3 Daily Builder Scripts

Post by ceremcem »

Mark Szlazak wrote: Mon Sep 10, 2018 11:25 pm why 40 minutes?
It takes that long on my machine to build everything :)
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Assembly3 Daily Builder Scripts

Post by Jee-Bee »

Don't know enything of your'e computer but maybe if you run ccache (https://en.wikipedia.org/wiki/Ccache) it becomes faster. about two years ago (at the moment i was able to run vm) it takes less time on my vm for compiling and most days it can't be worse then at that moment :P
User avatar
ceremcem
Posts: 226
Joined: Sun Jan 07, 2018 11:10 am

Re: Assembly3 Daily Builder Scripts

Post by ceremcem »

Jee-Bee wrote: Tue Sep 11, 2018 5:18 am Don't know enything of your'e computer but maybe if you run ccache (https://en.wikipedia.org/wiki/Ccache) it becomes faster. about two years ago (at the moment i was able to run vm) it takes less time on my vm for compiling and most days it can't be worse then at that moment :P
Rebuilding without code change takes ~2 minutes, so I assume caching mechanism works well. Building from scratch or a small code change in the core that invalidates all caches would require ~40 minutes (or hours, in low end computers or low resource virtual machines) of build process, which is I think quite normal.

I got the best results with LXC containers, which provides native speeds and full resource usage abilities.

I don't know about your setup either, but if you could try it out (either with a virtual machine or with your real machine) and share your timings, that would give some idea :)
tmolteno
Posts: 6
Joined: Fri Apr 27, 2018 11:40 am

Re: Assembly3 Daily Builder Scripts

Post by tmolteno »

Fantastic, thank you for posting these.
Post Reply