The build process of creating a build environment docker image on Windows has been obsolete for quite some time.
In the past 6 months we have migrated to the Visual Studio 2019 build tools (i.e., v142) and also now use updated versions of some libraries and other dependencies (e.g., mingw).
As a result, in order to automatically trigger builds of the cura-build-environment (after every commit or PR merge) using the Windows GitHub runner we have to update the build process of creating this docker image, because now it is broken.
Changes included in this Pull Request:
Separate the build process into two docker images:
a. One that installs the base requirements (e.g., Visual Studio Build Tools, mingw, chocolatey, git, cmake, etc.)
b. One that builds the current repository and all of its Cura dependencies (e.g., Python, Qt, protobuf, etc.)
The rationale behind this is that we have some applications and tools that won't be updated often like Visual Studio or certain compilers like mingw or toolsets like Wixand NSIS. Thus, we create a base image including all these that will be used as the basis where our build environment will be created.
Create a separate batch file for installing the VS 2019 buildtools
Use the new buildtools and the Windows 10 SDK for building Python
Install mingwmanually, as the choco installation method does not include the posix threads
The build process of creating a build environment docker image on Windows has been obsolete for quite some time. In the past 6 months we have migrated to the Visual Studio 2019 build tools (i.e.,
v142
) and also now use updated versions of some libraries and other dependencies (e.g.,mingw
). As a result, in order to automatically trigger builds of the cura-build-environment (after every commit or PR merge) using the Windows GitHub runner we have to update the build process of creating this docker image, because now it is broken. Changes included in this Pull Request:Separate the build process into two docker images: a. One that installs the base requirements (e.g.,
Visual Studio Build Tools
,mingw
,chocolatey
,git
,cmake
, etc.) b. One that builds the current repository and all of its Cura dependencies (e.g.,Python
,Qt
,protobuf
, etc.) The rationale behind this is that we have some applications and tools that won't be updated often likeVisual Studio
or certain compilers likemingw
or toolsets likeWix
andNSIS
. Thus, we create a base image including all these that will be used as the basis where our build environment will be created.Create a separate batch file for installing the VS 2019 buildtools
Use the new buildtools and the
Windows 10 SDK
for building PythonInstall
mingw
manually, as the choco installation method does not include the posix threadsPart of CURA-8709
Needs to be reviewed together with https://github.com/Ultimaker/cura-build/pull/269