-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Build Images #1155
Comments
PR #1166 Added a workflow to build Docker images and push them to the GitHub Docker registry. Though it may trigger runs more often then needed. For instance, if a Docker image build is done on a branch, and then tested by building the code using the new Docker image, and then that branch is merged to It might make sense to not automatically run the new workflow for the Potentially we could add a Another weakness is that if we were to fill out the Given the limitations of path filters, we can't prevent a matrix job from running, though we could have a job terminate early, such as by detecting if a Docker image has already been built. The
One downside to the above approach, is that while working on a branch to test and verify a new build, it's expected the Docker image will be overwritten with each new build. We don't expect the version number to be continually bumped for experimental builds. That means for potentially many builds, the image and tag will already exist, yet we still want to rebuild and update it. It's only when the branch is merged that things should be finalised. The ability to overwrite Docker images applies to a Dockerfile that is being updated. This is separate from the problem of not updating Docker images for other Dockerfiles that are unaffected by a branch. The initial problem of this section was to avoid rebuilds of images that already exist and are not being updated on a branch. |
Further researching into detecting which files are updated on a branch, the following Stack Overflow questions are of interest:
Additionally, the following GitHub Actions documentation for It seems the previous commit can be determined with The documentation wasn't super clear about the value of |
Running Using StackOverflow: Check if specific file in git repository has changed Example usages:
|
A potential problem with running To add information for a single branch, such as branch
The commit for that branch would then need to be fetched, perhaps also using a
At that point, a comparison should then be possible:
Information on the state of the repo (throughout the process above) can be seen with:
Additionally, The commands and environment can be tested locally by cloning a repo using a
Alternatively, instead of adding a remote tracking branch, the branch can be downloaded into a local branch. Doing so is about the same for a CI environment, though perhaps less convenient long term if working locally, where updates may need to be fetched at some point in the future. Fetching commit directly into a local branch:
Since the branch is local, the
|
The Mingw Docker environment shows warnings when installing the
This stems from the use of A lot of examples on the internet give an alternative using Some additional info about why not to place keys in the often suggested location:
In summary, avoid using Some additional info can be found in:
|
Worked on updating the Mingw build image, though currently it's unable to run the unit test executable:
Explicitly specifying the Oddly, when running the image as The It appears
From the script, it appears the 32-bit version is preferred, when it is available. When it's not available, a message is printed, suggesting it be installed, with instructions on how to install the 32-bit version. |
The build images haven't been updated in awhile and should be updated.
The next LTS (Long Term Support) version of Ubuntu is out this month.
https://releases.ubuntu.com/noble/
24.04
(Noble Numbat)Additionally, the MacOS build image is now quite dated.
https://circleci.com/docs/using-macos/#supported-xcode-versions
15.3.0
(marked as unsupported by Visual Studio code)15.2.0
(accepted without error underline squiggles)13.4.1
The text was updated successfully, but these errors were encountered: