From 8441c66bdbb15c082d5b669316caa60cb1e13052 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Thu, 8 Oct 2026 12:24:41 +0200 Subject: [PATCH] Run macOS only when started by hand Everyday work is built and tested on Linux only. macOS and Windows jobs run only when started by hand (workflow_dispatch: gh workflow run --ref ), not on pull requests or pushes to main. Release workflows are unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85384a05b..2ccf4654b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ on: push: branches: [main] pull_request: + workflow_dispatch: permissions: contents: read jobs: @@ -10,7 +11,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-26] + # Linux only. macOS only when started by hand: gh workflow run checks --ref . + os: ${{ fromJSON(github.event_name == 'workflow_dispatch' && '["ubuntu-latest", "macos-26"]' || '["ubuntu-latest"]') }} runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -375,7 +377,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-26] + # Linux only. macOS only when started by hand: gh workflow run checks --ref . + os: ${{ fromJSON(github.event_name == 'workflow_dispatch' && '["ubuntu-latest", "macos-26"]' || '["ubuntu-latest"]') }} runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4