From 5953c2cce8a79c07a594e63ebd721c1801b1c7e6 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Sat, 19 Apr 2025 15:36:43 -0300 Subject: [PATCH] Bump ubuntu version use in CI --- .github/actions/plan/platforms.ts | 16 ++++++++++++++-- .github/workflows/build.yml | 6 +++--- .github/workflows/code.yml | 14 +++++++------- .github/workflows/dependabot.yml | 4 ++-- .github/workflows/docker.yml | 2 +- 5 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/actions/plan/platforms.ts b/.github/actions/plan/platforms.ts index d3db9bfef..6db549963 100644 --- a/.github/actions/plan/platforms.ts +++ b/.github/actions/plan/platforms.ts @@ -3,6 +3,7 @@ export const selfHostedRunners = { } as const; export type StandardRunnerOS = + | "ubuntu-24.04" | "ubuntu-22.04" | "ubuntu-20.04" | "macos-13" @@ -36,12 +37,23 @@ const buildEnvScriptPath = (script: string) => // All the platforms that we support, and their respective settings. export const all = { + ubuntu2404: { + name: "Ubuntu 24.04", + os: "ubuntu-24.04", + buildEnvScript: buildEnvScriptPath("ubuntu.sh"), + isOnSelfHostedRunner: false, + essential: true, + env: {}, + cacheKey: "ubuntu2404-amd64", + artifactMarker: "ubuntu2404", + isBroken: false, + }, ubuntu2204: { name: "Ubuntu 22.04", os: "ubuntu-22.04", buildEnvScript: buildEnvScriptPath("ubuntu.sh"), isOnSelfHostedRunner: false, - essential: true, + essential: false, env: {}, cacheKey: "ubuntu2204-amd64", artifactMarker: "ubuntu2204", @@ -96,4 +108,4 @@ export const all = { } satisfies Platforms; // A platform for running things that are platform-independent. -export const core = all.ubuntu2204 satisfies Platform; +export const core = all.ubuntu2404 satisfies Platform; diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4683cdb5a..f5d9334aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: draft-release: name: Create a release draft if: startsWith(github.ref, 'refs/tags/') - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: release-id: ${{ steps.create-release.outputs.id }} upload-url: ${{ steps.create-release.outputs.upload_url }} @@ -42,7 +42,7 @@ jobs: plan: name: Plan the execution - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} permissions: @@ -147,7 +147,7 @@ jobs: - build name: Publish release if: startsWith(github.ref, 'refs/tags/') - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 50 permissions: contents: write diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 561d04482..5120094e9 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -24,7 +24,7 @@ env: jobs: plan: name: Plan the execution - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} permissions: @@ -81,7 +81,7 @@ jobs: build-args: "--features try-runtime" fail-fast: false name: End-to-end tests / ${{ matrix.test.suite }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 50 permissions: contents: read @@ -94,7 +94,7 @@ jobs: - uses: ./.github/actions/common-setup with: - platformCacheKey: ubuntu2204-amd64 + platformCacheKey: ubuntu2404-amd64 buildEnvScript: .github/scripts/build_env/ubuntu.sh timeout-minutes: 10 @@ -128,7 +128,7 @@ jobs: run: utils/checks/features-snapshot fail-fast: false name: ${{ matrix.util.name }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 20 permissions: contents: read @@ -139,7 +139,7 @@ jobs: - uses: ./.github/actions/common-setup with: - platformCacheKey: ubuntu2204-amd64 + platformCacheKey: ubuntu2404-amd64 timeout-minutes: 10 - run: ${{ matrix.util.run }} @@ -182,7 +182,7 @@ jobs: fail-fast: false name: ${{ matrix.util.name }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 20 permissions: contents: read @@ -205,7 +205,7 @@ jobs: prettier: name: prettier:check - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 50 permissions: contents: read diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index dfbef7fa6..7f28cc3dc 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -21,7 +21,7 @@ env: jobs: update-features-snapshot: name: Update features snapshot - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 20 permissions: contents: read @@ -37,7 +37,7 @@ jobs: - uses: ./.github/actions/common-setup with: - platformCacheKey: ubuntu2204-amd64 + platformCacheKey: ubuntu2404-amd64 timeout-minutes: 10 if: ${{ env.IS_DEPENDABOT == 'true' }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 06d95257a..9c3547e4e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,7 +16,7 @@ concurrency: jobs: docker: name: Docker - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 50 permissions: contents: read