ci: add Windows on ARM64 cross-compilation and packaging jobs
- Add `build-windows-arm64` and `package-windows-arm64` stages to `.gitlab-ci.yml` and wire download links to wiki updates - Create `scripts/mingw-w64-arm64-toolchain.cmake` targeting `Windows` / `aarch64` with LLVM-MinGW - Update `docker/Dockerfile.build` with LLVM-MinGW toolchain, MSYS2 Qt 6.10 ARM64 packages, and ARM64 cross-compiled static libraries (libiconv, uchardet, zlib, minizip, libarchive) - Isolate GCC x86_64 and LLVM-MinGW ARM64 toolchains in `scripts/mingw-w64-toolchain.cmake` and PATH configuration - Refactor `packaging/package-windows.sh` to package both x86_64 and ARM64 runtime DLLs and support MSYS2 plugin/QML directory layouts - Update `scripts/test-ci-windows.sh` with `--arm64`, `--only-arm64`, `--image`, and local image detection - Guard `-mwindows` link flag with `if(MINGW)` in `CMakeLists.txt` - Document Windows ARM64 build targets and instructions in `AGENTS.md` and `README.md`
This commit is contained in:
9 files changed
+337
-72
No files matched your search
@@ -54,7 +54,7 @@ Full target format list:
|
||||
- Qt 6.10+ components: `Core`, `Gui`, `Qml`, `Quick`, `Widgets`, `Concurrent`, `Svg`, `QuickControls2`, `Test`, `Xml`, `Network`, optional `DBus`.
|
||||
- Third-party packages: `minizip`, `libarchive`, `iconv`, optional `uchardet`.
|
||||
|
||||
### Windows Build Environment
|
||||
### Windows Build Environment (x86_64)
|
||||
Qt 6.10.3 at `C:\msys64\opt\qt\6.10.3\mingw_64`. MinGW toolchain at `C:\msys64\mingw64\bin\`:
|
||||
```bash
|
||||
PATH="/c/msys64/mingw64/bin:$PATH" "C:/msys64/mingw64/bin/cmake.exe" \
|
||||
@@ -69,6 +69,22 @@ PATH="/c/msys64/mingw64/bin:$PATH" "C:/msys64/mingw64/bin/ninja.exe" -C build
|
||||
PATH="/c/msys64/opt/qt/6.10.3/mingw_64/bin:/c/msys64/mingw64/bin:$PATH" "C:/msys64/mingw64/bin/ctest.exe" --test-dir build --output-on-failure
|
||||
```
|
||||
|
||||
### Windows ARM64 Cross-Compilation Environment (Linux host / CI)
|
||||
Cross-compiled using `llvm-mingw` (`aarch64-w64-mingw32`) and MSYS2 `clangarm64` Qt 6 / sysroot packages:
|
||||
```bash
|
||||
PKG_CONFIG_PATH="/opt/mingw-arm64-sysroot/lib/pkgconfig" cmake -B build-windows-arm64 -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_TOOLCHAIN_FILE=scripts/mingw-w64-arm64-toolchain.cmake \
|
||||
-DCMAKE_PREFIX_PATH="/opt/qt/6.10.3/mingw_arm64;/opt/mingw-arm64-sysroot" \
|
||||
-DCMAKE_FIND_ROOT_PATH="/opt/qt/6.10.3/mingw_arm64;/opt/mingw-arm64-sysroot" \
|
||||
-DQT_HOST_PATH="/opt/qt/6.10.3/gcc_64"
|
||||
cmake --build build-windows-arm64 --target asteria-qt
|
||||
```
|
||||
Packaging:
|
||||
```bash
|
||||
packaging/package-windows.sh build-windows-arm64 /opt/qt/6.10.3/mingw_arm64 /opt/mingw-arm64-sysroot dist arm64
|
||||
```
|
||||
|
||||
### Linux Build Environment (Ubuntu 24.04)
|
||||
```bash
|
||||
cmake -S . -B build -G Ninja \
|
||||
|
||||
Reference in new issue
Block a user