From 68817e4be0d4bc44d7191c06c00278abef383f63 Mon Sep 17 00:00:00 2001 From: Ahir Date: Wed, 4 Nov 2026 19:32:47 +0530 Subject: [PATCH 1/2] ci: run the macOS write watch and register context tests under Rosetta --- .github/workflows/build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41ee9800bc37..189c79347208 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -375,6 +375,14 @@ jobs: matrix: os: [ubuntu-latest, macos-15-intel] configuration: [Debug, Release] + architectures: [''] + include: + - os: macos-15 + configuration: Debug + architectures: x86_64 + - os: macos-15 + configuration: Release + architectures: x86_64 runs-on: ${{ matrix.os }} timeout-minutes: 5 steps: @@ -398,7 +406,9 @@ jobs: if [ "$(git rev-parse "refs/remotes/pull/${numbers[i]}")" != "${heads[i]}" ]; then echo "::error::Pull request #${numbers[i]} has newer commits; start a new build"; exit 1; fi if ! git -c user.name=ci -c user.email=ci@localhost merge --no-ff --no-edit "refs/remotes/pull/${numbers[i]}"; then echo "::error::Pull request #${numbers[i]} does not merge cleanly into main and the pull requests before it; rebase it first"; exit 1; fi done - - run: cmake -S core/libs/tests/register_context -B build/register-context -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} + - if: ${{ matrix.architectures == 'x86_64' }} + run: sudo softwareupdate --install-rosetta --agree-to-license + - run: cmake -S core/libs/tests/register_context -B build/register-context -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_OSX_ARCHITECTURES=${{ matrix.architectures }} - run: cmake --build build/register-context --parallel - run: ctest --test-dir build/register-context --output-on-failure --repeat until-fail:3 --no-tests=error @@ -409,6 +419,10 @@ jobs: fail-fast: false matrix: os: [macos-15-intel, macos-15] + architectures: [''] + include: + - os: macos-15 + architectures: x86_64 runs-on: ${{ matrix.os }} timeout-minutes: 5 steps: @@ -432,7 +446,9 @@ jobs: if [ "$(git rev-parse "refs/remotes/pull/${numbers[i]}")" != "${heads[i]}" ]; then echo "::error::Pull request #${numbers[i]} has newer commits; start a new build"; exit 1; fi if ! git -c user.name=ci -c user.email=ci@localhost merge --no-ff --no-edit "refs/remotes/pull/${numbers[i]}"; then echo "::error::Pull request #${numbers[i]} does not merge cleanly into main and the pull requests before it; rebase it first"; exit 1; fi done - - run: cmake -S core/libs/tests/write_watch -B build/write-watch -DCMAKE_BUILD_TYPE=Release + - if: ${{ matrix.architectures == 'x86_64' }} + run: sudo softwareupdate --install-rosetta --agree-to-license + - run: cmake -S core/libs/tests/write_watch -B build/write-watch -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=${{ matrix.architectures }} - run: cmake --build build/write-watch --parallel - run: ctest --test-dir build/write-watch --output-on-failure --repeat until-fail:3 --no-tests=error From 69eed07f5eab51c7339c9b6e9eabe719b14029d2 Mon Sep 17 00:00:00 2001 From: Ahir Date: Wed, 4 Nov 2026 19:33:05 +0530 Subject: [PATCH 2/2] ci: allow more time for Rosetta test jobs --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 189c79347208..10b2e71338d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -384,7 +384,7 @@ jobs: configuration: Release architectures: x86_64 runs-on: ${{ matrix.os }} - timeout-minutes: 5 + timeout-minutes: ${{ matrix.architectures == 'x86_64' && 15 || 5 }} steps: - uses: actions/checkout@v7 with: @@ -424,7 +424,7 @@ jobs: - os: macos-15 architectures: x86_64 runs-on: ${{ matrix.os }} - timeout-minutes: 5 + timeout-minutes: ${{ matrix.architectures == 'x86_64' && 15 || 5 }} steps: - uses: actions/checkout@v7 with: