From 805317f6ebf37c7e68ca72578a90eeeee04488ee Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 1 Oct 2026 23:29:07 +0200 Subject: [PATCH] GHA/windows: move Linux cross-builds to arm64 runners For slightly better performance, and better efficiency. Saving over 1 minute. The clang-tidy build is 2x fast. Also: - GHA/windows: fix `windres` command-line for non-intel machines. Closes #2637 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08e5f208..9a5425e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -642,7 +642,7 @@ jobs: build_linux_cross_mingw64: name: "linux -> mingw-w64, ${{ matrix.build }} ${{ matrix.compiler }}" - runs-on: ubuntu-26.04 + runs-on: ubuntu-26.04-arm timeout-minutes: 10 strategy: fail-fast: false @@ -682,6 +682,7 @@ jobs: options+=' -DLIBSSH2_CLANG_TIDY=ON -DCLANG_TIDY=/usr/bin/clang-tidy-22' options+=' -DCMAKE_C_COMPILER=clang-22' options+=" -DCMAKE_RC_COMPILER=llvm-windres-$(clang-22 -dumpversion | cut -d '.' -f 1)" + options+=' -DCMAKE_RC_FLAGS=--target=pe-x86-64' # Required for non-x86-64 runners else options+=" -DCMAKE_C_COMPILER=${TRIPLET}-gcc" fi