From 0ff5471aba8a6c41c89a6a5f4cee4b23a49258c9 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 11 Mar 2025 02:55:14 +0800 Subject: [PATCH] fix: use ubuntu-22.04 instead of latest for desktop release Related bug: https://github.com/electron/electron/issues/41066. --- .github/workflows/build-desktop-release.yml | 12 ++++++------ .github/workflows/build-docker.yml | 2 +- .github/workflows/build.yml | 8 ++++---- .github/workflows/e2e.yml | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-desktop-release.yml b/.github/workflows/build-desktop-release.yml index 2e29552272..a3f69da984 100644 --- a/.github/workflows/build-desktop-release.yml +++ b/.github/workflows/build-desktop-release.yml @@ -53,7 +53,7 @@ env: jobs: compile-cljs: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Check build options if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.build-target == 'nightly' || github.event.inputs.build-target == 'beta') && github.event.inputs.git-ref != 'master' }} @@ -173,7 +173,7 @@ jobs: e2e-test: name: E2E Test Shard ${{ matrix.shard }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: shard: [1, 2, 3] @@ -223,7 +223,7 @@ jobs: RELEASE: true # skip dev only test build-linux-x64: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 needs: [ compile-cljs ] steps: - name: Download The Static Asset @@ -269,7 +269,7 @@ jobs: path: builds build-linux-arm64: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 needs: [ compile-cljs ] steps: - name: Download The Static Asset @@ -581,7 +581,7 @@ jobs: nightly-release: if: ${{ github.event_name == 'schedule' || github.event.inputs.build-target == 'nightly' }} needs: [ build-macos-x64, build-macos-arm64, build-linux-x64, build-linux-arm64, codesign-windows, build-android, e2e-test ] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Download MacOS x64 Artifacts uses: actions/download-artifact@v3 @@ -661,7 +661,7 @@ jobs: # NOTE: For now, we only have beta channel to be released on Github if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.build-target == 'beta' }} needs: [ build-macos-x64, build-macos-arm64, build-linux-x64, build-linux-arm64, codesign-windows, build-android, e2e-test ] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Download MacOS x64 Artifacts uses: actions/download-artifact@v3 diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index fd8952ff3b..208e6badb8 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -12,7 +12,7 @@ env: jobs: build-docker: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3267e5b827..cfca0afd6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ env: jobs: typos: name: Spell Check with Typos - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout Actions Repository uses: actions/checkout@v3 @@ -32,7 +32,7 @@ jobs: test: strategy: matrix: - operating-system: [ubuntu-latest] + operating-system: [ubuntu-22.04] runs-on: ${{ matrix.operating-system }} @@ -83,7 +83,7 @@ jobs: node static/tests.js lint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout @@ -117,7 +117,7 @@ jobs: run: bb lang:validate-translations e2e-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 86b2fa190c..84dca498ed 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -24,7 +24,7 @@ env: jobs: e2e-test-build: name: Build Test Artifact - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 @@ -97,7 +97,7 @@ jobs: e2e-test-run: needs: [ e2e-test-build ] name: Test Shard ${{ matrix.shard }} Repeat ${{ matrix.repeat }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: repeat: [1, 2]