Closed zah closed 2 years ago
That sounds painful. I think I'd rather handle that separately. Maybe in Ansible rather than the build script, since we call it less frequently.
Can you clarify your concern, @jakubgs? The build script will build the Nim binary only once (the result will be cached in the nimbus-build-system/vendor/Nim/bin directory)
I found a better solution: delete all but the 10 newest binaries in "build_nim.sh".
Do we care about deleting those accumulated compiler binaries for each target commit, at some point?
It's as simple as an initial
make clean
, but it will rebuild the compiler each time.