From 21db2936e617d1018c0bfa5690d8f035dee2843f Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Fri, 7 Jul 2023 15:26:37 +0300 Subject: [PATCH] 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; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ --- .github/workflows/bench.yml | 6 +++--- .github/workflows/book.yml | 8 ++++---- .github/workflows/ci.yml | 8 ++++---- .github/workflows/deny.yml | 2 +- .github/workflows/docker.yml | 2 +- .github/workflows/fuzz.yml | 4 ++-- .github/workflows/hive.yml | 4 ++-- .github/workflows/integration.yml | 6 +++--- .github/workflows/release.yml | 10 +++++----- .github/workflows/sanity.yml | 4 ++-- .github/workflows/stale.yml | 2 +- .github/workflows/unit.yml | 8 ++++---- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index c7b35a38e..5fec9c079 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -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 diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 684acb8e9..d099b2549 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 970736506..0164ead1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index f4ee00981..8332723b8 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -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 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bb3809dc1..80f02f0cf 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index e2005ee50..61459252c 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -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. diff --git a/.github/workflows/hive.yml b/.github/workflows/hive.yml index 694e06545..20def9eed 100644 --- a/.github/workflows/hive.yml +++ b/.github/workflows/hive.yml @@ -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 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d4375665d..07c58b867 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8098e4063..5a5bedaaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 8b1e6f671..71ec1b495 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -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 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 4a73a8a1b..9caae6965 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,7 +6,7 @@ on: jobs: close-issues: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 permissions: issues: write pull-requests: write diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 7873ee197..041eadbe8 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -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