mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
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
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user