From 5675f9c15a462046b40a55b9f3ebf94915de1306 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Tue, 20 Oct 2026 15:14:32 +0100 Subject: [PATCH] Keep macOS and Windows CI jobs off the Gitea runner Gitea matches runs-on against its runners before evaluating the job's if, so the macOS and Windows matrix jobs queued forever there. Off GitHub, every job now asks for ubuntu-latest and is skipped. --- .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 840b3b2..8b229bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,9 @@ jobs: test: name: Test (${{ matrix.os }}, Node ${{ matrix.node }}) # GitHub only: the Gitea origin also runs .github/workflows but has no macOS/Windows runners. + # Gitea matches runs-on before evaluating `if`, so off GitHub every job asks for ubuntu-latest and is skipped. if: github.server_url == 'https://github.com' - runs-on: ${{ matrix.os }} + runs-on: ${{ github.server_url == 'https://github.com' && matrix.os || 'ubuntu-latest' }} strategy: fail-fast: false matrix: