ci: pin ubuntu to 20.04 to avoid glibc errors

ref: https://github.com/paradigmxyz/reth/actions/runs/5486255403/jobs/9996118421
ref: https://github.com/foundry-rs/foundry/issues/3827

Compiling serde v1.0.164
error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /target/maxperf/deps/libserde_derive-6e9709c79bb5c7fa.so)
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.164/src/lib.rs:340:1
    |
340 | extern crate serde_derive;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
This commit is contained in:
Georgios Konstantopoulos
2023-07-07 15:26:37 +03:00
parent 9e9e2b22eb
commit 21db2936e6
12 changed files with 32 additions and 32 deletions

View File

@ -13,7 +13,7 @@ concurrency:
name: bench name: bench
jobs: jobs:
iai: iai:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
# Only run benchmarks in merge groups # Only run benchmarks in merge groups
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
steps: steps:
@ -60,7 +60,7 @@ jobs:
# Checks that benchmarks not run in CI compile # Checks that benchmarks not run in CI compile
bench-check: bench-check:
name: check name: check
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install toolchain - name: Install toolchain
@ -74,7 +74,7 @@ jobs:
if: always() if: always()
name: bench success name: bench success
needs: bench-check needs: bench-check
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Decide whether the needed jobs succeeded or failed - name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1 uses: re-actors/alls-green@release/v1

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: test name: test
steps: steps:
@ -30,7 +30,7 @@ jobs:
run: mdbook test run: mdbook test
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: lint name: lint
steps: steps:
@ -48,7 +48,7 @@ jobs:
run: mdbook-linkcheck --standalone run: mdbook-linkcheck --standalone
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -108,7 +108,7 @@ jobs:
deploy: deploy:
# Only deploy if a push to main # Only deploy if a push to main
if: github.ref_name == 'main' && github.event_name == 'push' if: github.ref_name == 'main' && github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: [test, lint, build] needs: [test, lint, build]
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment # Grant GITHUB_TOKEN the permissions required to make a Pages deployment

View File

@ -14,7 +14,7 @@ name: ci
jobs: jobs:
lint: lint:
name: code lint name: code lint
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -40,7 +40,7 @@ jobs:
doc-lint: doc-lint:
name: doc lint name: doc lint
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install toolchain - name: Install toolchain
@ -51,7 +51,7 @@ jobs:
grafana-lint: grafana-lint:
name: grafana lint name: grafana lint
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Check dashboard JSON with jq - name: Check dashboard JSON with jq
@ -62,7 +62,7 @@ jobs:
lint-success: lint-success:
if: always() if: always()
name: lint success name: lint success
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: [lint, doc-lint, grafana-lint] needs: [lint, doc-lint, grafana-lint]
steps: steps:
- name: Decide whether the needed jobs succeeded or failed - name: Decide whether the needed jobs succeeded or failed

View File

@ -18,7 +18,7 @@ concurrency: deny-${{ github.head_ref || github.run_id }}
jobs: jobs:
deny: deny:
name: deny name: deny
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1 - uses: EmbarkStudios/cargo-deny-action@v1

View File

@ -16,7 +16,7 @@ env:
jobs: jobs:
build: build:
name: build and push name: build and push
runs-on: ubuntu-latest runs-on: ubuntu-20.04
permissions: permissions:
packages: write packages: write
contents: read contents: read

View File

@ -16,7 +16,7 @@ jobs:
# Skip the Fuzzing Jobs until we make them run fast and reliably. Currently they will # Skip the Fuzzing Jobs until we make them run fast and reliably. Currently they will
# always recompile the codebase for each test and that takes way too long. # always recompile the codebase for each test and that takes way too long.
if: false if: false
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
target: target:
@ -62,7 +62,7 @@ jobs:
fuzz-success: fuzz-success:
if: always() if: always()
name: fuzz success name: fuzz success
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: all needs: all
steps: steps:
# Note: This check is a dummy because we currently have fuzz tests disabled. # Note: This check is a dummy because we currently have fuzz tests disabled.

View File

@ -14,7 +14,7 @@ concurrency:
name: hive name: hive
jobs: jobs:
prepare: prepare:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -104,7 +104,7 @@ jobs:
fail-fast: false fail-fast: false
needs: prepare needs: prepare
name: run name: run
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Download artifacts - name: Download artifacts

View File

@ -16,7 +16,7 @@ name: integration
jobs: jobs:
test: test:
name: test (partition ${{ matrix.partition }}/${{ strategy.job-total }}) name: test (partition ${{ matrix.partition }}/${{ strategy.job-total }})
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
partition: [1, 2] partition: [1, 2]
@ -65,7 +65,7 @@ jobs:
name: sync / 100k blocks name: sync / 100k blocks
# Only run sync tests in merge groups # Only run sync tests in merge groups
if: github.event_name == 'merge_group' if: github.event_name == 'merge_group'
runs-on: ubuntu-latest runs-on: ubuntu-20.04
env: env:
RUST_LOG: info,sync=error RUST_LOG: info,sync=error
steps: steps:
@ -93,7 +93,7 @@ jobs:
integration-success: integration-success:
if: always() if: always()
name: integration success name: integration success
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: [test] needs: [test]
steps: steps:
- name: Decide whether the needed jobs succeeded or failed - name: Decide whether the needed jobs succeeded or failed

View File

@ -16,7 +16,7 @@ env:
jobs: jobs:
extract-version: extract-version:
name: extract version name: extract version
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- name: Extract version - name: Extract version
run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_OUTPUT run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_OUTPUT
@ -34,10 +34,10 @@ jobs:
x86_64-pc-windows-gnu] x86_64-pc-windows-gnu]
include: include:
- arch: aarch64-unknown-linux-gnu - arch: aarch64-unknown-linux-gnu
platform: ubuntu-latest platform: ubuntu-20.04
profile: maxperf profile: maxperf
- arch: x86_64-unknown-linux-gnu - arch: x86_64-unknown-linux-gnu
platform: ubuntu-latest platform: ubuntu-20.04
profile: maxperf profile: maxperf
- arch: x86_64-apple-darwin - arch: x86_64-apple-darwin
platform: macos-latest platform: macos-latest
@ -46,7 +46,7 @@ jobs:
platform: macos-latest platform: macos-latest
profile: maxperf profile: maxperf
- arch: x86_64-pc-windows-gnu - arch: x86_64-pc-windows-gnu
platform: ubuntu-latest platform: ubuntu-20.04
profile: maxperf profile: maxperf
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
@ -129,7 +129,7 @@ jobs:
draft-release: draft-release:
name: draft release name: draft release
needs: [build, extract-version] needs: [build, extract-version]
runs-on: ubuntu-latest runs-on: ubuntu-20.04
env: env:
VERSION: ${{ needs.extract-version.outputs.VERSION }} VERSION: ${{ needs.extract-version.outputs.VERSION }}
permissions: permissions:

View File

@ -15,7 +15,7 @@ env:
name: sanity name: sanity
jobs: jobs:
dep-version-constraints: dep-version-constraints:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: dep version constraints test (partition ${{ matrix.partition }}/${{ strategy.job-total }}) name: dep version constraints test (partition ${{ matrix.partition }}/${{ strategy.job-total }})
strategy: strategy:
matrix: matrix:
@ -64,7 +64,7 @@ jobs:
filename: .github/SANITY_DEPS_ISSUE_TEMPLATE.md filename: .github/SANITY_DEPS_ISSUE_TEMPLATE.md
unused-deps: unused-deps:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: unused dependencies name: unused dependencies
steps: steps:
- name: Checkout sources - name: Checkout sources

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
close-issues: close-issues:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
permissions: permissions:
issues: write issues: write
pull-requests: write pull-requests: write

View File

@ -15,7 +15,7 @@ name: unit
jobs: jobs:
test: test:
name: test (partition ${{ matrix.partition }}/${{ strategy.job-total }}) name: test (partition ${{ matrix.partition }}/${{ strategy.job-total }})
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
partition: [1, 2, 3, 4] partition: [1, 2, 3, 4]
@ -51,7 +51,7 @@ jobs:
eth-blockchain: eth-blockchain:
name: ethereum / state tests (stable) name: ethereum / state tests (stable)
runs-on: ubuntu-latest runs-on: ubuntu-20.04
env: env:
RUST_LOG: info,sync=error RUST_LOG: info,sync=error
steps: steps:
@ -83,7 +83,7 @@ jobs:
doc-test: doc-test:
name: rustdoc name: rustdoc
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install toolchain - name: Install toolchain
@ -95,7 +95,7 @@ jobs:
unit-success: unit-success:
if: always() if: always()
name: unit success name: unit success
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: [test, eth-blockchain, doc-test] needs: [test, eth-blockchain, doc-test]
steps: steps:
- name: Decide whether the needed jobs succeeded or failed - name: Decide whether the needed jobs succeeded or failed