Skip to content

Commit

Permalink
Use ubuntu 22.04 in GHA (#3197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailai-Wang authored Dec 12, 2024
1 parent bbb8612 commit 7a947d9
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-with-args.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-runtime-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
retention-days: 3

try-runtime:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- check-condition
- runtime-matrix
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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') }}
Expand All @@ -244,7 +244,7 @@ jobs:
branch: dev

parachain-clippy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand All @@ -269,7 +269,7 @@ jobs:
uses: andymckay/[email protected]

tee-check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
uses: andymckay/[email protected]

omni-executor-check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand All @@ -354,7 +354,7 @@ jobs:
run: cargo test

parachain-build-dev:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:
uses: andymckay/[email protected]

identity-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -540,7 +540,7 @@ jobs:
uses: andymckay/[email protected]

bitacross-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -618,7 +618,7 @@ jobs:
uses: andymckay/[email protected]

omni-executor-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -727,7 +727,7 @@ jobs:
uses: andymckay/[email protected]

parachain-unit-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -755,7 +755,7 @@ jobs:
uses: andymckay/[email protected]

parachain-runtime-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- fmt
- set-condition
Expand Down Expand Up @@ -794,7 +794,7 @@ jobs:
uses: andymckay/[email protected]

identity-single-worker-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs:
- set-condition
- parachain-build-dev
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -29,7 +29,7 @@ jobs:

test:
name: Coverage Report
runs-on: [ubuntu-latest]
runs-on: [ubuntu-22.04]
needs:
- check-file-change
if: >
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete-cache-after-pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-stale-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
stale-bot:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/stale@v9
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
run-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ts-api-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
update-publish:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/try-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,7 +28,7 @@ jobs:
try-runtime:
needs: [runtime-matrix]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
Loading

0 comments on commit 7a947d9

Please sign in to comment.