Skip to content

Conversation

@Suyunmeng
Copy link
Contributor

This update introduces support for building applications on Windows 7 and enhances the LoongArch architecture with ABI1.0 compatibility. It includes the addition of new build functions, integration of a MinGW-w64 toolchain for Windows 7, and improvements to the existing build workflows. The changes ensure that builds for both Windows 7 and LoongArch maintain ABI compatibility and streamline the cross-compilation process.

* feat:Add Windows 7 and Loongson old world build support

- Add BuildWin7() function with patched Go compiler for Windows 7 compatibility
- Add BuildLoongOldWorld() function for linux-loong64-abi1.0 target
- Create Zig-based wrapper scripts for Windows 7 cross-compilation
- Integrate new build functions into existing release workflows

* fix(win7):Add MinGW-w64 toolchain and improve LoongArch ABI isolation

- Install MinGW-w64 cross-compilation toolchain for Win7 compatibility
- Replace Zig compiler wrappers with MinGW-w64 for Windows 7 builds
- Add Go build cache cleaning to prevent LoongArch ABI1.0/ABI2.0 cross-contamination
- Force clean rebuilds (-a flag) for LoongArch builds to ensure ABI compatibility

* feat: add Windows 7 build support to beta release workflow
- Add BuildWin7() function with patched Go compiler for Windows 7 compatibility
- Add BuildLoongOldWorld() function for linux-loong64-abi1.0 target
- Create Zig-based wrapper scripts for Windows 7 cross-compilation
- Integrate new build functions into existing release workflows
- Install MinGW-w64 cross-compilation toolchain for Win7 compatibility
- Replace Zig compiler wrappers with MinGW-w64 for Windows 7 builds
- Add Go build cache cleaning to prevent LoongArch ABI1.0/ABI2.0 cross-contamination
- Force clean rebuilds (-a flag) for LoongArch builds to ensure ABI compatibility
@github-actions
Copy link

⚠️ PR 标题需以 feat(): , docs(): , fix(): , style(): , refactor(): , chore(): 其中之一开头,例如:feat(component): 新增功能
⚠️ The PR title must start with feat(): , docs(): , fix(): , style(): , or refactor(): , chore(): . For example: feat(component): add new feature.

如果跨多个组件,请使用主要组件作为前缀,并在标题中枚举、描述中说明。
If it spans multiple components, use the main component as the prefix and enumerate in the title, describe in the body.

Copy link
Contributor

@elysia-best elysia-best left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有个cgo-actions的submodule,是误添加的嘛。

关于zig编译器,是否需要添加 https://github.com/mlugg/setup-zig 到Release用的GitHub actions里面?或者使用snap安装。

@Suyunmeng
Copy link
Contributor Author

关于zig编译器,是否需要添加 https://github.com/mlugg/setup-zig 到Release用的GitHub actions里面?或者使用snap安装。

不需要添加,release.yml中已有安装zig流程

@elysia-best
Copy link
Contributor

LGTM. 看需不需要其他人再看看吧,没问题就merge了

@elysia-best elysia-best merged commit be1ad08 into main Jul 26, 2025
8 checks passed
@elysia-best elysia-best deleted the feat/architecture-loongarch-win7 branch July 26, 2025 16:27
Suyunmeng added a commit that referenced this pull request Jul 30, 2025
- Add BuildWin7() function with patched Go compiler for Windows 7 compatibility
- Add BuildLoongOldWorld() function for linux-loong64-abi1.0 target
- Create Zig-based wrapper scripts for Windows 7 cross-compilation
- Integrate new build functions into existing release workflows
- Install MinGW-w64 cross-compilation toolchain for Win7 compatibility
- Replace Zig compiler wrappers with MinGW-w64 for Windows 7 builds
- Add Go build cache cleaning to prevent LoongArch ABI1.0/ABI2.0 cross-contamination
- Force clean rebuilds (-a flag) for LoongArch builds to ensure ABI compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants