jbush001 / NyuziProcessor

GPGPU microprocessor architecture
Apache License 2.0
1.96k stars 348 forks source link

Use multi-stage build to create CI container #187

Open jbush001 opened 4 years ago

jbush001 commented 4 years ago

Currently, the build container is created by copying files from the host install, which is messy and not fully reproducible:

https://github.com/jbush001/NyuziProcessor/blob/master/scripts/build_container.sh

Instead, use the new multi-stage build feature to Docker to build the compiler and Verilator inside a container:

https://docs.docker.com/develop/develop-images/multistage-build/

jbush001 commented 4 years ago

Also, should use build output artifacts from https://github.com/jbush001/NyuziToolchain/issues/107 instead of having to rebuild the compiler.