From a4558b7715bed9c852f729a4ff6ae6deb6f15724 Mon Sep 17 00:00:00 2001 From: Junwang Zhao Date: Fri, 27 Feb 2026 13:57:22 +0800 Subject: [PATCH] chore: use ubuntu-slim for lightweight jobs ubuntu-slim is a new cost-efficient runner to fit lightweight jobs. We can use this to save ASF infra usage (if possible). This topic was raised in the Apache ORC project, see https://github.com/apache/orc/pull/2566 Refs: - https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/ - https://github.com/actions/runner-images/blob/main/images/ubuntu-slim/ubuntu-slim-Readme.md --- .github/workflows/codeql.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/license_check.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2a78d6e27..e71958d97 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -35,7 +35,7 @@ permissions: jobs: analyze: name: Analyze Actions - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: read security-events: write diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7ad32af1b..c6ec84fd9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,7 +34,7 @@ permissions: jobs: docs: - runs-on: ubuntu-24.04 + runs-on: ubuntu-slim steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 1d70c5291..8bed66aad 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -25,7 +25,7 @@ permissions: jobs: license-check: name: "License Check" - runs-on: ubuntu-24.04 + runs-on: ubuntu-slim steps: - name: Checkout repository uses: actions/checkout@v6 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index efdc6c16a..67f8ec586 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -29,7 +29,7 @@ permissions: jobs: pre-commit: - runs-on: ubuntu-24.04 + runs-on: ubuntu-slim steps: - uses: actions/checkout@v6 - uses: actions/setup-python@v6