-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add CI setup for packaging Windows on ARM artifacts #4425
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
Conversation
|
Hi @MugundanMCW! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
A few points :
One of the options would be to name the feature branch |
| include: | ||
| - { msystem: mingw64, env: x86_64, ziparch: win64 } | ||
| - { msystem: mingw32, env: i686, ziparch: win32 } | ||
| - { msystem: mingw64, env: x86_64, ziparch: win64, build_type: msys2 } |
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.
In this naming scheme, build_type can be either msys2 or cmake.
This feels a bit strange, as msys2 is an environment, not a build solution nor type.
Also, pay attention that, within cmake context, build type traditionally refers to something specific, like opt or debug build types.
For clarity of maintenance, I would invite to reconsider this naming scheme.
You probably meant something like shell == msys2 || pwsh, or build == make || cmake.
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.
@Cyan4973 Thanks for the suggestion, I have replaced built type with shell for better naming scheme and maintainability.
| defaults: | ||
| run: | ||
| shell: msys2 {0} | ||
| shell: ${{ matrix.build_type == 'cmake' && 'pwsh' || 'msys2 {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.
There are more idiomatic ways to state the same thing, with less long-context to maintain,
for example:
- name: Build (MSYS2)
if: matrix.build_type == 'msys2'
shell: msys2 {0}
run: |
# msys2 commands here
- name: Build (CMake/ARM64)
if: matrix.build_type == 'cmake'
shell: pwsh
run: |
# PowerShell commands hereI have not yet understood why Powershell pwsh is necessary here, since msys2 also provides cmake.
On the other hand, if both code paths feature a lot of differences, maybe it would be better to just separate them completely into different actions.
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.
@Cyan4973 Yes, MSYS2 also provides CMake, but currently there's no native MSYS2 environment available for Windows on ARM64. As a result, running CMake within the MSYS2 environment on Windows ARM64 often involves emulation.
|
Closing this PR as #4465 is created with the same changes. Thanks. |
Description: