-
Notifications
You must be signed in to change notification settings - Fork 0
added windows-arc-runner to Github arc setup #12
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Joseph <[email protected]>
Signed-off-by: Joseph <[email protected]>
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: "0 1 * * *" | ||
workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These triggers are pretty frequent and overlapping.
- Is a
schedule
even needed? How about once a week instead of daily? - Is
pull_request
needed? We shouldn't push "latest" images on unreviewed code, but checking that the image builds successfully is useful.
- name: Docker Push | ||
#if: ${{ github.event_name != 'pull_request' && steps.versions.outputs.PUBLISHED != 'True' }} | ||
run: | | ||
docker push -a ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uncomment? Pull request triggers should not publish (at least without some label marking them as dev builds and not "latest" / "prod"
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to pin runners and actions to specific versions so they don't change outside of our control
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember seeing warnings about changes to Windows runners over the past few months on GitHub. I see the job on this PR failed due to lack of disk space. This could be related. I'll try to dig up info after I finish eating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Looks like they swapped from 2022 to 2025, and the job was last run months ago. Probably is a good idea to be fixed to the 2022 runner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
windows-2025 is also fine with me (if it works)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am assuming windows-latest (i.e., 2022) did not run into the disk space error the last time Elias ran this workflow. I see others complaining about disk space with 2025 runners: actions/runner-images#12609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I didn't see the disc space errors before
# Define the entry point for the docker container. | ||
# This entry point starts the developer command prompt and launches the PowerShell shell. | ||
RUN choco install cmake --version=3.31.0 -y --no-progress --installargs '"ADD_CMAKE_TO_PATH=System"' | ||
RUN choco install python -y --no-progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to pin the Python version here so it doesn't update when the dockerfile is rebuilt
Initial pull request. I'm looking at trimming down comments