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

View File

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

View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@ jobs:
# 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.
if: false
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
target:
@ -62,7 +62,7 @@ jobs:
fuzz-success:
if: always()
name: fuzz success
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: all
steps:
# Note: This check is a dummy because we currently have fuzz tests disabled.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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