From 2391fdf55a6f421aa17a8b3bafbd24c2eec20f74 Mon Sep 17 00:00:00 2001 From: inoway46 Date: Sun, 8 Nov 2026 13:59:31 +0900 Subject: [PATCH] tools: use ubuntu-latest for public CI jobs Use ubuntu-latest for CodeQL, documentation, both tarball jobs, lint-cpp and format-cpp in public repositories after observing timeouts on ubuntu-slim. Keep around 30 other jobs on ubuntu-slim, and retain ubuntu-slim in private repositories to avoid increasing runner costs. Refs: https://github.com/nodejs/node/pull/66409 Refs: https://github.com/nodejs/node/pull/61663 Refs: https://github.com/nodejs/node/issues/64972 Assisted-by: Codex Signed-off-by: inoway46 --- .github/workflows/build-tarball.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/doc.yml | 2 +- .github/workflows/linters.yml | 4 ++-- .github/workflows/test-shared.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 009b753f4faf..a9688f61c11d 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -74,7 +74,7 @@ permissions: jobs: build-tarball: if: github.event.pull_request.draft == false - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6ad66a72676a..4128df452b9d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,7 @@ jobs: analyze: if: github.repository == 'nodejs/node' name: Analyze - runs-on: ubuntu-slim + runs-on: ubuntu-latest permissions: actions: read contents: read diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 9d06f0b21247..d9a2c9b3b777 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -22,7 +22,7 @@ permissions: jobs: build-docs: if: github.event.pull_request.draft == false - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 43a649942070..e550f95684de 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -40,7 +40,7 @@ jobs: run: NODE=$(command -v node) make lint-addon-docs lint-cpp: if: github.event.pull_request.draft == false - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -60,7 +60,7 @@ jobs: run: make lint-cpp format-cpp: if: ${{ github.event.pull_request && github.event.pull_request.draft == false && github.base_ref == github.event.repository.default_branch }} - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/test-shared.yml b/.github/workflows/test-shared.yml index 73254d292ec1..c4701fc73f76 100644 --- a/.github/workflows/test-shared.yml +++ b/.github/workflows/test-shared.yml @@ -125,7 +125,7 @@ jobs: build-tarball: if: github.event.pull_request.draft == false name: ${{ github.event_name == 'workflow_dispatch' && 'Skipped job' || 'Build slim tarball' }} - runs-on: ubuntu-slim + runs-on: ${{ github.event.repository.private && 'ubuntu-slim' || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: