-
-
Notifications
You must be signed in to change notification settings - Fork 281
新增 WoA (Windows ARM64) 支持 #366
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8f8e586
新增 WoA (Windows ARM64) 的 GitHub Action 构建
NewbieXvwu 40d7cd3
支持 WoA (Windows ARM64) 的 CPU 架构检测
NewbieXvwu 388c524
补全 MSYS2 换源的 mirrorlist 备份
NewbieXvwu 9e0c406
还原 build-on-Windows workflow 的文件名(其同时编译 Android,无需按架构区分)
NewbieXvwu fb4aa71
规范 Windows Arm64 命名,产物更名为 chsrc-arm64-windows.exe
NewbieXvwu f1ed4e8
登记贡献者 @NewbieXvwu 至相关文件头与 MSYS2 recipe
NewbieXvwu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # --------------------------------------------------------------- | ||
| # Workflow File : build-on-Windows-ARM64.yml | ||
| # File Authors : NewbieXvwu <newbiexvwu@gmail.com> | ||
| # Contributors : Nul None <nul@none.org> | ||
| # | | ||
| # Created On : <2026-07-21> | ||
| # Last Modified : <2026-07-21> | ||
| # | ||
| # Build chsrc on Windows (ARM64/WoA) and upload it to GitHub: the 'pre' release | ||
| # --------------------------------------------------------------- | ||
|
|
||
| name: 构建于 Windows ARM64 | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "gh-build" ] | ||
|
|
||
| jobs: | ||
| build-and-upload: | ||
| # windows-11-arm 为原生 WoA (Windows on ARM) runner,已 GA | ||
| runs-on: windows-11-arm | ||
| defaults: | ||
| run: | ||
| shell: msys2 {0} | ||
|
|
||
| steps: | ||
|
|
||
| - name: 检出代码 | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 安装 Clang (CLANGARM64) | ||
| uses: msys2/setup-msys2@v2 | ||
| with: | ||
| # CLANGARM64 提供原生 AArch64 的 clang 工具链 | ||
| msystem: CLANGARM64 | ||
| update: true | ||
| install: | | ||
| mingw-w64-clang-aarch64-clang | ||
| mingw-w64-clang-aarch64-make | ||
|
|
||
| - name: 为 arm64 (AArch64) 构建 | ||
| run: | | ||
| mingw32-make.exe build-in-ci-release-mode | ||
| mv chsrc-ci-release.exe chsrc-aarch64-windows.exe | ||
|
|
||
| - name: List files | ||
| run: ls *.exe | ||
|
|
||
| - name: 上传至 'pre' release | ||
| uses: softprops/action-gh-release@v2 | ||
| # if: startsWith(github.ref, 'refs/tags/') | ||
| with: | ||
| tag_name: pre | ||
| files: | | ||
| chsrc-aarch64-windows.exe | ||
8 changes: 4 additions & 4 deletions
8
.github/workflows/build-on-Windows.yml → ...hub/workflows/build-on-Windows-x64x86.yml
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个文件还预编译了安卓,所以改名不必要 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -192,6 +192,9 @@ curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-windo | |
|
|
||
| # x86 | ||
| curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x86-windows.exe -o chsrc.exe | ||
|
|
||
| # arm64/aarch64 (WoA, Windows on ARM) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同理 |
||
| curl -L https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-aarch64-windows.exe -o chsrc.exe | ||
| ``` | ||
|
|
||
| </details> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 的消费者面对的大部分是
Arm64这个称呼,应该考虑直接使用arm64这个名称。