Skip to content

GHA: cross-compile Android on Linux instead of Windows - #248

Merged
compnerd merged 1 commit into
mainfrom
compnerd/android-linux
Jul 28, 2026
Merged

GHA: cross-compile Android on Linux instead of Windows#248
compnerd merged 1 commit into
mainfrom
compnerd/android-linux

Conversation

@compnerd

Copy link
Copy Markdown
Owner

windows-latest builds noticeably slower than ubuntu-latest for this kind of CMake/Ninja/clang workload (per-file AV scanning, slower NTFS metadata operations), and this job's only reason for running on Windows was to also prove the Windows-host NDK cross-compile path. That coverage is redundant: ds2 on Windows is already exercised by the native windows/windows_arm64/windows_store/mingw build jobs and test-windows, so nothing is lost by moving this to Linux.

Dropping the pre-built regsgen2.exe dependency along with it: the windows_tools artifact existed to share one regsgen2 build across all the Windows jobs, but on Linux, omitting DS2_REGSGEN2 lets CMake build RegsGen2 itself via ExternalProject against the host compiler, the same way the existing Linux job already does for its own cross builds.

windows-latest builds noticeably slower than ubuntu-latest for this
kind of CMake/Ninja/clang workload (per-file AV scanning, slower NTFS
metadata operations), and this job's only reason for running on
Windows was to also prove the Windows-host NDK cross-compile path.
That coverage is redundant: ds2 on Windows is already exercised by the
native windows/windows_arm64/windows_store/mingw build jobs and
test-windows, so nothing is lost by moving this to Linux.

Dropping the pre-built regsgen2.exe dependency along with it: the
windows_tools artifact existed to share one regsgen2 build across all
the Windows jobs, but on Linux, omitting DS2_REGSGEN2 lets CMake build
RegsGen2 itself via ExternalProject against the host compiler, the
same way the existing Linux job already does for its own cross
builds.
@compnerd
compnerd merged commit 1b61ede into main Jul 28, 2026
42 of 43 checks passed
@compnerd
compnerd deleted the compnerd/android-linux branch July 28, 2026 21:39
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.

1 participant