From 7a947d95c53d5b097fd2c0d1984c471e1f518c1a Mon Sep 17 00:00:00 2001 From: Kai <7630809+Kailai-Wang@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:05:48 +0100 Subject: [PATCH] Use ubuntu 22.04 in GHA (#3197) --- .github/workflows/benchmark-machine.yml | 2 +- .../workflows/benchmark-runtime-weights.yml | 4 +-- .github/workflows/build-docker-with-args.yml | 2 +- .github/workflows/build-wasm.yml | 2 +- .github/workflows/check-runtime-upgrade.yml | 8 ++--- .github/workflows/ci.yml | 36 +++++++++---------- .github/workflows/coverage.yml | 4 +-- .github/workflows/create-release-draft.yml | 14 ++++---- .github/workflows/create-release-issue.yml | 2 +- .../workflows/delete-cache-after-pr-close.yml | 2 +- .github/workflows/issue-stale-bot.yml | 2 +- .github/workflows/post-checks.yml | 2 +- .github/workflows/release-bot.yml | 2 +- .github/workflows/release-ts-api-package.yml | 2 +- .github/workflows/try-runtime.yml | 4 +-- .../verify-correctness-of-vc-content.yml | 2 +- .../.github/workflows/build_and_test.yml | 8 ++--- 17 files changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/benchmark-machine.yml b/.github/workflows/benchmark-machine.yml index 4dcf7e2fdb..298e2a2fe9 100644 --- a/.github/workflows/benchmark-machine.yml +++ b/.github/workflows/benchmark-machine.yml @@ -16,7 +16,7 @@ env: jobs: ## run the benchmarking remotely benchmark-machine: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout codes on ${{ github.ref }} uses: actions/checkout@v4 diff --git a/.github/workflows/benchmark-runtime-weights.yml b/.github/workflows/benchmark-runtime-weights.yml index 6a33d08446..6b545b0908 100644 --- a/.github/workflows/benchmark-runtime-weights.yml +++ b/.github/workflows/benchmark-runtime-weights.yml @@ -34,7 +34,7 @@ jobs: ## build docker image with runtime-benchmarks feature and push it to the hub build-docker: if: ${{ github.event.inputs.rebuild-docker == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout codes on ${{ github.ref }} uses: actions/checkout@v4 @@ -68,7 +68,7 @@ jobs: ## run the benchmarking remotely benchmark: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: build-docker # see https://github.com/actions/runner/issues/491 if: | diff --git a/.github/workflows/build-docker-with-args.yml b/.github/workflows/build-docker-with-args.yml index d5d025c415..01a775e3d3 100644 --- a/.github/workflows/build-docker-with-args.yml +++ b/.github/workflows/build-docker-with-args.yml @@ -27,7 +27,7 @@ env: jobs: ## build docker image of client binary with args ## build-docker-with-args: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout codes on ${{ github.event.inputs.ref || github.ref }} uses: actions/checkout@v4 diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index ce00b2ec63..792c17ec47 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -19,7 +19,7 @@ env: jobs: build-wasm: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout codes on ${{ github.event.inputs.ref || github.ref }} uses: actions/checkout@v4 diff --git a/.github/workflows/check-runtime-upgrade.yml b/.github/workflows/check-runtime-upgrade.yml index 29be294441..3e00583aab 100644 --- a/.github/workflows/check-runtime-upgrade.yml +++ b/.github/workflows/check-runtime-upgrade.yml @@ -21,7 +21,7 @@ env: jobs: check-condition: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: skip_simulation: ${{ steps.check.outputs.skip_simulation }} steps: @@ -37,7 +37,7 @@ jobs: echo "skip_simulation=$skip_simulation" | tee -a $GITHUB_OUTPUT runtime-matrix: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: runtime: ${{ steps.runtime.outputs.runtime }} name: Parse runtime matrix @@ -56,7 +56,7 @@ jobs: echo "runtime=$TASKS" >> $GITHUB_OUTPUT simulate-runtime-upgrade: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - check-condition - runtime-matrix @@ -112,7 +112,7 @@ jobs: retention-days: 3 try-runtime: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - check-condition - runtime-matrix diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d7bee414c..35e0e9cbbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,7 @@ concurrency: jobs: set-condition: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # see https://github.com/orgs/community/discussions/25722 if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} outputs: @@ -171,7 +171,7 @@ jobs: echo "run_omni_executor_test=$run_omni_executor_test" | tee -a $GITHUB_OUTPUT fmt: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -233,7 +233,7 @@ jobs: # sequentialise the workflow runs on `dev` branch # the if condition is applied in step level to make this job always `successful` sequentialise: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Wait for previous run if: ${{ !failure() && (github.event_name == 'push') && (github.ref == 'refs/heads/dev') }} @@ -244,7 +244,7 @@ jobs: branch: dev parachain-clippy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -269,7 +269,7 @@ jobs: uses: andymckay/cancel-action@0.5 tee-check: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -330,7 +330,7 @@ jobs: uses: andymckay/cancel-action@0.5 omni-executor-check: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -354,7 +354,7 @@ jobs: run: cargo test parachain-build-dev: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -399,7 +399,7 @@ jobs: uses: andymckay/cancel-action@0.5 identity-build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -540,7 +540,7 @@ jobs: uses: andymckay/cancel-action@0.5 bitacross-build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -618,7 +618,7 @@ jobs: uses: andymckay/cancel-action@0.5 omni-executor-build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -666,7 +666,7 @@ jobs: if-no-files-found: error parachain-ts-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - set-condition - parachain-build-dev @@ -727,7 +727,7 @@ jobs: uses: andymckay/cancel-action@0.5 parachain-unit-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -755,7 +755,7 @@ jobs: uses: andymckay/cancel-action@0.5 parachain-runtime-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - fmt - set-condition @@ -794,7 +794,7 @@ jobs: uses: andymckay/cancel-action@0.5 identity-single-worker-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - set-condition - parachain-build-dev @@ -879,7 +879,7 @@ jobs: retention-days: 3 identity-multi-worker-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 continue-on-error: true if: ${{ github.event.inputs.run-multi-worker-test == 'true' }} # only if triggered manually needs: @@ -965,7 +965,7 @@ jobs: retention-days: 3 bitacross-worker-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - set-condition - parachain-build-dev @@ -1045,7 +1045,7 @@ jobs: retention-days: 3 omni-executor-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - set-condition - parachain-build-dev @@ -1118,7 +1118,7 @@ jobs: # # `!failure()` needs to be used to cover skipped jobs push-docker: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: - set-condition - parachain-ts-test diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a3d2c526fa..5873c4a237 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ concurrency: jobs: check-file-change: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # see https://github.com/orgs/community/discussions/25722 if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} outputs: @@ -29,7 +29,7 @@ jobs: test: name: Coverage Report - runs-on: [ubuntu-latest] + runs-on: [ubuntu-22.04] needs: - check-file-change if: > diff --git a/.github/workflows/create-release-draft.yml b/.github/workflows/create-release-draft.yml index 26d3e523f8..fe5ebbd5f2 100644 --- a/.github/workflows/create-release-draft.yml +++ b/.github/workflows/create-release-draft.yml @@ -47,7 +47,7 @@ env: jobs: set-release-type: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: set release_type id: vars @@ -71,7 +71,7 @@ jobs: build-parachain-runtime: if: ${{ github.event.inputs.parachain_runtime == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: chain: @@ -115,7 +115,7 @@ jobs: build-parachain-client: if: ${{ github.event.inputs.parachain_client == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout codes on ${{ env.RELEASE_TAG }} uses: actions/checkout@v4 @@ -160,7 +160,7 @@ jobs: build-identity-worker: if: ${{ github.event.inputs.identity_worker == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 environment: production steps: - name: Checkout codes on ${{ env.RELEASE_TAG }} @@ -229,7 +229,7 @@ jobs: build-bitacross-worker: if: ${{ github.event.inputs.bitacross_worker == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 environment: production steps: - name: Checkout codes on ${{ env.RELEASE_TAG }} @@ -296,7 +296,7 @@ jobs: docker push litentry/bitacross-worker:${{ env.RELEASE_TAG }} parachain-ts-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: build-parachain-client strategy: matrix: @@ -354,7 +354,7 @@ jobs: ## create the release draft ## create-release-draft: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # see https://github.com/actions/runner/issues/491 # seems to be the only way to achieve this needs: diff --git a/.github/workflows/create-release-issue.yml b/.github/workflows/create-release-issue.yml index 36665b8c8e..f64a74d898 100644 --- a/.github/workflows/create-release-issue.yml +++ b/.github/workflows/create-release-issue.yml @@ -8,7 +8,7 @@ on: jobs: create-release-issue: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout codes on ${{ github.ref }} uses: actions/checkout@v4 diff --git a/.github/workflows/delete-cache-after-pr-close.yml b/.github/workflows/delete-cache-after-pr-close.yml index d2de9faf14..94c472ec30 100644 --- a/.github/workflows/delete-cache-after-pr-close.yml +++ b/.github/workflows/delete-cache-after-pr-close.yml @@ -7,7 +7,7 @@ on: jobs: cleanup: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v4 diff --git a/.github/workflows/issue-stale-bot.yml b/.github/workflows/issue-stale-bot.yml index 8fdb8f45c9..40a25267ca 100644 --- a/.github/workflows/issue-stale-bot.yml +++ b/.github/workflows/issue-stale-bot.yml @@ -10,7 +10,7 @@ permissions: jobs: stale-bot: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/stale@v9 with: diff --git a/.github/workflows/post-checks.yml b/.github/workflows/post-checks.yml index 63cadb1c0b..814b0b948a 100644 --- a/.github/workflows/post-checks.yml +++ b/.github/workflows/post-checks.yml @@ -15,7 +15,7 @@ on: jobs: run-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release-bot.yml b/.github/workflows/release-bot.yml index 8272256b58..a122ceca1a 100644 --- a/.github/workflows/release-bot.yml +++ b/.github/workflows/release-bot.yml @@ -5,7 +5,7 @@ on: jobs: release-bot: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # this means the release contains a new docker image (thus a new client) if: contains(github.event.release.body, 'litentry/litentry-parachain:v') steps: diff --git a/.github/workflows/release-ts-api-package.yml b/.github/workflows/release-ts-api-package.yml index 10ab069846..76f7795529 100644 --- a/.github/workflows/release-ts-api-package.yml +++ b/.github/workflows/release-ts-api-package.yml @@ -19,7 +19,7 @@ env: jobs: update-publish: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index 9266930731..c325117490 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -9,7 +9,7 @@ concurrency: jobs: runtime-matrix: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: runtime: ${{ steps.runtime.outputs.runtime }} name: Parse runtime matrix @@ -28,7 +28,7 @@ jobs: try-runtime: needs: [runtime-matrix] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/verify-correctness-of-vc-content.yml b/.github/workflows/verify-correctness-of-vc-content.yml index d5b0d39cf6..27326ba6e9 100644 --- a/.github/workflows/verify-correctness-of-vc-content.yml +++ b/.github/workflows/verify-correctness-of-vc-content.yml @@ -15,7 +15,7 @@ env: jobs: test-vc-correctness: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/tee-worker/identity/.github/workflows/build_and_test.yml b/tee-worker/identity/.github/workflows/build_and_test.yml index d877a60fa6..23f7033f6e 100644 --- a/tee-worker/identity/.github/workflows/build_and_test.yml +++ b/tee-worker/identity/.github/workflows/build_and_test.yml @@ -21,7 +21,7 @@ env: jobs: cancel_previous_runs: name: Cancel Previous Runs - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: styfle/cancel-workflow-action@0.11.0 with: @@ -198,7 +198,7 @@ jobs: docker images --all code-quality: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 container: "integritee/integritee-dev:0.2.2" strategy: fail-fast: false @@ -239,7 +239,7 @@ jobs: run: ${{ matrix.check }} toml-fmt: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: init rust @@ -550,7 +550,7 @@ jobs: docker images --all release: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 name: Draft Release if: startsWith(github.ref, 'refs/tags/') needs: [ build-test, integration-tests, release-build ]