From 581e5a492e9f9738719dfb01d3f2e407ff910fdd Mon Sep 17 00:00:00 2001 From: sgt57 <198590103+sgt57@users.noreply.github.com> Date: Sat, 7 Nov 2026 15:38:58 +0800 Subject: [PATCH] ci: run macOS tests on native architectures --- .github/workflows/macos-qt6.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos-qt6.yml b/.github/workflows/macos-qt6.yml index da0ece58..2845eb3f 100644 --- a/.github/workflows/macos-qt6.yml +++ b/.github/workflows/macos-qt6.yml @@ -19,11 +19,16 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest] build_type: [Release, RelWithDebInfo, Debug] arch: [x86_64, arm64] qt_ver: [6.12.0] qt_arch: [clang_64] + # Run each architecture natively: Rosetta can stall compiler startup. + include: + - arch: x86_64 + os: macos-26-intel + - arch: arm64 + os: macos-latest env: targetName: lemon steps: @@ -54,7 +59,6 @@ jobs: -DCMAKE_OSX_ARCHITECTURES="${{ matrix.arch }}" cmake --build . --parallel $(sysctl -n hw.logicalcpu) - name: Run tests - if: ${{ false }} run: | ctest --test-dir . --output-on-failure --timeout 120 # tag 打包